CacheVoiceChannel class

Represents VoiceChannel within Guild

Inheritance
Mixed in types

Properties

bitrate int
The channel's bitrate.
read / write, final, late, inherited
client Nyxx
Reference to client instance
final, inherited
connectedUsers Iterable<VoiceState>
Allows to get VoiceStates of users connected to this channel
read-only
createdAt DateTime
Gets creation timestamp included in Snowflake
read-only, inherited
guild Guild
The guild that the channel is in.
read / write, inherited
guildId Snowflake
Id of Guild that the channel is in.
final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
id Snowflake
ID of entity as Snowflake
final, inherited
isNsfw bool
Indicates if channel is nsfw
read / write, final, late, inherited
name String
The channel"s name.
read / write, final, late, inherited
parentChannel CategoryChannel
Parent channel id
read / write, inherited
parentChannelId Snowflake
Id of parent channel
read / write, final, late, inherited
permissionOverrides List<PermissionsOverrides>
Returns list of CacheMember objects who can see this channel
read / write, final, late, inherited
position int
The channel's position in the channel list.
read / write, final, late, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
type ChannelType
The channel's type. https://discordapp.com/developers/docs/resources/channel#channel-object-channel-types
final, inherited
userLimit int
The channel's user limit.
read / write, final, late, inherited
users Iterable<IMember>
Returns list of CacheMember objects who can see this channel
read-only, inherited

Methods

createInvite({int maxAge, int maxUses, bool temporary, bool unique, String auditReason}) Future<Invite>
Creates new Invite for Channel and returns it's instance [...]
inherited
delete({String auditReason}) Future<void>
Deletes the channel. Throws if bot cannot perform operation
inherited
deleteChannelPermission(SnowflakeEntity id, {String auditReason}) Future<void>
Deletes permission overwrite for given User or Role id Throws if id isn't User or Role
inherited
edit({String name, int bitrate, int position, int userLimit, String auditReason}) Future<VoiceChannel>
inherited
editChannelPermissionOverrides(PermissionOverrideBuilder permissionBuilder, {String auditReason}) Future<void>
Allows to edit or set channel permission overrides.
inherited
editChannelPermissions(PermissionsBuilder perms, SnowflakeEntity entity, {String auditReason}) Future<void>
Allows to set permissions for channel. entity can be either User or Role Throws if entity isn't User or Role
inherited
effectivePermissionForRole(Role role) Permissions
Returns effective permissions for role to this channel including channel overrides.
inherited
effectivePermissions(CacheMember member) Permissions
Returns effective permissions for member to this channel including channel overrides.
inherited
getChannelInvites() Stream<InviteWithMeta>
Fetches and returns all channel"s Invites [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited