ChannelBuilder
Properties
Type
An enumeration of activity types.
- Game: 0
- Streaming: 1
- Listening: 2
- Watching: 3
- Competing: 5
VideoQualityMode
An enumeration of activity types.
- QualityAuto: 1
- Quality720p: 2
SortOrder
An enumeration of activity types.
- LatestActivity: 0
- CreationDate: 1
ForumLayout
An enumeration of activity types.
- NotSet: 0
- ListView: 1
- GalleryView: 2
Methods
setType
ChannelBuilder : setType () -> Builders.ChannelBuilder
Sets the type of the current discord channel.
setBitrate
ChannelBuilder : setBitrate () -> Builders.ChannelBuilder
Sets the bitrate of the current discord voice channel.
setRegion
ChannelBuilder : setRegion () -> Builders.ChannelBuilder
Sets the region of the current discord voice channel.
setVideoQualityMode
ChannelBuilder : setVideoQualityMode () -> Builders.ChannelBuilder
Sets the Video Quality Mode of a discord voice channel
addMemberOverwrite
ChannelBuilder : addMemberOverwrite () -> Builders.ChannelBuilder
Sets an overwrite for a Member, allowing you to define allowed permissions, alongside dissallowed permissions.
addRoleOverwrite
ChannelBuilder : addRoleOverwrite () -> Builders.ChannelBuilder
Sets an overwrite for a Role, allowing you to define allowed permissions, alongside dissallowed permissions.
setDefaultReaction
ChannelBuilder : setDefaultReaction () -> Builders.ChannelBuilder
Sets the default reaction for Forum and Media channels.
setDefaultSortOrder
ChannelBuilder : setDefaultSortOrder () -> Builders.ChannelBuilder
Sets the default sort order for Forum and Media channels.
setDefaultForumLayout
ChannelBuilder : setDefaultForumLayout () -> Builders.ChannelBuilder
Sets the Default layout for Forum channels.
setPosition
ChannelBuilder : setPosition () -> Builders.ChannelBuilder
Sets the name of the Discord Channel
setPosition
ChannelBuilder : setPosition () -> Builders.ChannelBuilder
Sets the position of a Discord Channel, the position determines the position the channel appears in the channel hierarchy.
setTopic
ChannelBuilder : setTopic () -> Builders.ChannelBuilder
Sets the topic of a Discord Channel.
setNSFW
ChannelBuilder : setNSFW () -> Builders.ChannelBuilder
Locks the channel to be NSFW only.
setRateLimitPerUser
ChannelBuilder : setRateLimitPerUser () -> Builders.ChannelBuilder
Sets the rate limit per user for a discord channel.
setParentCategoryId
ChannelBuilder : setParentCategoryId () -> Builders.ChannelBuilder
Sets the parent category of a discord channel.
setDefaultAutoArchiveDuration
ChannelBuilder : setDefaultAutoArchiveDuration () -> Builders.ChannelBuilder
Sets the default archive duration for a discord channel.
setDefaultThreadRateLimitPerUser
ChannelBuilder : setDefaultThreadRateLimitPerUser () -> Builders.ChannelBuilder
Sets the default thread limit for each user in a discord channel.
toPayloadObject
ChannelBuilder : toPayloadObject () -> Network.Resolvable
Converts the activity to a JSON object that can be sent to the Discord API.
Functions
new
ChannelBuilder . new () -> ()
Creates a new instance of ChannelBuilder.