func WithChannelType(t ChannelType) ChannelSetting {
	return func(s *ChannelSettings) {
		s.Type = optional.NewInt(int(t))
	}
}
WithChannelType sets the name of a channel.
package discord
import "github.com/skwair/harmony/optional"
type ChannelSettings struct {
	Name      *optional.String `json:"name,omitempty"`  
	Type      *optional.Int    `json:"type,omitempty"`
	Topic     *optional.String `json:"topic,omitempty"`  
	Bitrate   *optional.Int    `json:"bitrate,omitempty"`
	UserLimit *optional.Int    `json:"user_limit,omitempty"`
	RateLimitPerUser *optional.Int `json:"rate_limit_per_user,omitempty"`
	Position    *optional.Int         `json:"position,omitempty"`
	Permissions []PermissionOverwrite `json:"permission_overwrites,omitempty"`
	ParentID    *optional.String      `json:"parent_id,omitempty"`
	NSFW        *optional.Bool        `json:"nsfw,omitempty"`
}
type ChannelSetting func(*ChannelSettings)
func NewChannelSettings(opts ...ChannelSetting) *ChannelSettings {
	s := &ChannelSettings{}
	for _, opt := range opts {
		opt(s)
	}
	return s
}
func WithChannelName(name string) ChannelSetting {
	return func(s *ChannelSettings) {
		s.Name = optional.NewString(name)
	}
}