Channel¶
Inherits: MentionableEntity < DiscordEntity < Reference < Object
Inherited By: Guild.ChannelCategory, Guild.GuildStoreChannel, TextChannel, VoiceChannel
Description¶
Represents a guild or DM channel within Discord.
Properties¶
type | name |
---|---|
int | type |
Methods¶
return type | signature |
---|---|
Channel | fetch ( ) coroutine |
int | get_creation_timestamp ( ) |
bool | is_guild ( ) |
bool | is_text ( ) |
bool | is_voice ( ) |
Constants¶
-
Dictionary Type
-
UNKNOWN = -1
-
GUILD_TEXT = 0
-
DM = 1
-
GUILD_VOICE = 2
-
GROUP_DM = 3
-
GUILD_CATEGORY = 4
-
GUILD_NEWS = 5
-
GUILD_STORE = 6
-
GUILD_NEWS_THREAD = 10
-
GUILD_PUBLIC_THREAD = 11
-
GUILD_PRIVATE_THREAD = 12
-
GUILD_STAGE_VOICE = 13
Channel types.
-
Property Descriptions¶
-
int type
The type of channel.
Method Descriptions¶
-
Channel fetch ( ) coroutine
Fetches the channel from Discord API.
-
int get_creation_timestamp ( )
Gets the creation timestamp of the channel in unix time.
-
bool is_guild ( )
Whether the channel is part of a guild.
-
bool is_text ( )
Whether the channel is a text channel.
-
bool is_voice ( )
Whether the channel is a voice channel.