Skip to content

Commit

Permalink
Refresh list of channel types
Browse files Browse the repository at this point in the history
  • Loading branch information
tk3369 committed Oct 9, 2021
1 parent 7ec1ed4 commit 897e419
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions src/types/channel.jl
Original file line number Diff line number Diff line change
@@ -1,10 +1,25 @@
export DiscordChannel

"""
A [`DiscordChannel`](@ref)'s type. Available values are `CT_GUILD_TEXT`, `CT_DM`,
`CT_GUILD_VOICE`, `CT_GROUP_DM`, `CT_GUILD_CATEGORY`, `CT_GUILD_NEWS` and `CT_GUILD_STORE`.
A [`DiscordChannel`](@ref)'s type. Prefix with `CT_`. See full list
at https://discord.com/developers/docs/resources/channel#channel-object-channel-types
"""
@enum ChannelType CT_GUILD_TEXT CT_DM CT_GUILD_VOICE CT_GROUP_DM CT_GUILD_CATEGORY CT_GUILD_NEWS CT_GUILD_STORE
@enum ChannelType begin
CT_GUILD_TEXT=0
CT_DM=1
CT_GUILD_VOICE=2
CT_GROUP_DM=3
CT_GUILD_CATEGORY=4
CT_GUILD_NEWS=5
CT_GUILD_STORE=6
UNUSED_API_V9_1=7
UNUSED_API_V9_2=8
UNUSED_API_V9_3=9
CT_GUILD_NEWS_THREAD=10
CT_GUILD_PUBLIC_THREAD=11
CT_GUILD_PRIVATE_THREAD=12
CT_GUILD_STAGE_VOICE=13
end
@boilerplate ChannelType :export :lower

"""
Expand Down

0 comments on commit 897e419

Please sign in to comment.