IGuildChannel class

Represents channel which is part of guild. Can be represented by CachelessGuildChannel or CacheGuildChannel

Inheritance
Implementers

Properties

client Nyxx
Reference to client instance
final, inherited
createdAt DateTime
Gets creation timestamp included in Snowflake
read-only, inherited
guildId Snowflake
Id of Guild that the channel is in.
read-only
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-only
name String
The channel"s name.
read-only
parentChannelId Snowflake
Id of parent channel
read-only
permissionOverrides List<PermissionsOverrides>
Returns list of CacheMember objects who can see this channel
read-only
position int
Relative position of channel in context of channel list
read-only
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

Methods

createInvite({int maxAge, int maxUses, bool temporary, bool unique, String auditReason}) Future<Invite>
Creates new Invite for Channel and returns it"s instance [...]
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
editChannelPermissionOverrides(PermissionOverrideBuilder permissionBuilder, {String auditReason}) Future<void>
Allows to edit or set channel permission overrides.
editChannelPermissions(PermissionsBuilder perms, SnowflakeEntity id, {String auditReason}) Future<void>
Allows to set or edit permissions for channel. id can be either User or Role Throws if id isn't User or Role
getChannelInvites() Stream<InviteWithMeta>
Fetches and returns all channel"s Invites [...]
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