ServerChannel¶
extends Channel
A ServerChannel is a Channel that belongs to a Server.
Attributes¶
name¶
String, name of the channel.
type¶
String, either voice
or text
.
position¶
Number, position in the channel list.
permissionOverwrites¶
Cache of all the PermissionOverwrite objects affecting the channel.
Functions¶
permissionsOf(userOrRole)¶
Aliases: permsOf
Returns a ChannelPermissions object of a user or role’s permissions in that channel.
mention()¶
Returns a string that can be used in discord messages to mention a channel. serverChannel.toString() defaults to this.
update(data, callback)¶
Shortcut of
client.updateChannel(channel, data, callback)