alchemy v0.6.1 Alchemy.Channel
This module contains useful functions for operating on Channels.
Summary
Types
DMChannels represent a private message between 2 users; in this case, between a client and a user
Represents an Invite object along with the metadata
Represents the channel an invite is for
Represents the guild an invite is for
Represents a permission OverWrite object
Represents a standard channel in a Guild
Types
dm_channel :: %Alchemy.DMChannel{id: String.t, last_message_id: String.t, recipients: User.t, type: atom}
DMChannels represent a private message between 2 users; in this case, between a client and a user
idthe private channel’s id
recipientsthe users with which the private channel is open
last_message_idThe id of the last message sent
invite :: %Alchemy.Channel.Invite{channel: invite_channel, code: String.t, created_at: datetime, guild: invite_guild, inviter: User.t, max_age: Integer, max_uses: Integer, revoked: Boolean, temporary: Boolean, uses: Integer}
Represents an Invite object along with the metadata.
codeThe unique invite code
guildThe guild this invite is for
channelThe channel this invite is for
inviterThe user who created the invite
usesThe amount of time this invite has been used
max_usesThe max number of times this invite can be used
max_ageThe duration (seconds) after which the invite will expire
temporaryWhether this invite grants temporary membership
created_atWhen this invite was created
revokedWhether this invite was revoked
invite_channel :: %Alchemy.Channel.Invite.InviteChannel{id: snowflake, name: String.t, type: String.t}
Represents the channel an invite is for
idThe id of the channel
nameThe name of the channel
typeThe type of the channel, either “text” or “voice”
invite_guild :: %Alchemy.Channel.Invite.InviteGuild{icon: hash, id: snowflake, name: String.t, splash: hash}
Represents the guild an invite is for.
idThe id of the guild
nameThe name of the guild
splashThe hash of the guild splash (or
nil)iconThe hash of the guild icon (or
nil)
overwrite :: %Alchemy.OverWrite{allow: Integer, deny: Integer, id: String.t, type: String.t}
Represents a permission OverWrite object
idrole or user id
typeeither “role”, or “member”
allowthe bit set of that permission
denythe bit set of that permission
t :: %Alchemy.Channel{bitrate: Integer | nil, guild_id: String.t, id: String.t, last_message_id: String.t | nil, name: String.t, nsfw: Boolean.t | nil, permission_overwrites: [overwrite], position: Integer, topic: String.t | nil, type: atom, user_limit: Integer | nil}
Represents a standard channel in a Guild.
idThe id of this specific channel. Will be the same as the guild for the “#general” channel
guild_idThe id of the guild this channel is a part of
nameThe name of the channel
type:text,:voice,:group, or:guild_categorypositionSorting position of the channel
permission_overwritesAn array of
%OverWrite{}objectstopicThe topic of a channel,
nilfor voicelast_message_idThe id of the last message sent in the channel,
nilfor voicebitrateThe bitrate of a voice channel,
nilfor textuser_limitThe user limit of a voice channel,
nilfor textnsfwIf the channel is marked as NSFW by the API,
nilby default