Channel

A channel object

Members

Functions

DM
bool DM()

Whether this is a direct message

category
bool category()

Whether this channel is a category

createWebhook
void createWebhook(string name, string avatar)

Undocumented in source. Be warned that the author may not have intended to support it.

getPermissions
Permission getPermissions(Snowflake user)

Get permissions for a user in this channel

guild
Guild guild()

Undocumented in source. Be warned that the author may not have intended to support it.

initialize
void initialize()

Undocumented in source. Be warned that the author may not have intended to support it.

sendMessage
Message sendMessage(inout(string) content, string nonce, bool tts)

Undocumented in source. Be warned that the author may not have intended to support it.

sendMessage
Message sendMessage(Sendable obj)

Undocumented in source. Be warned that the author may not have intended to support it.

sendMessagef
Message sendMessagef(inout(string) content, T args)

Undocumented in source. Be warned that the author may not have intended to support it.

text
bool text()

Whether this is a text channel

toString
string toString()

Undocumented in source. Be warned that the author may not have intended to support it.

voice
bool voice()

Whether this is a voice channel

voiceStates
auto voiceStates()

Get all voice states for this channel

Mixins

__anonymous
mixin Model

Undocumented in source.

__anonymous
mixin Permissible

Undocumented in source.

Variables

bitrate
uint bitrate;

Undocumented in source.

guildID
Snowflake guildID;

Undocumented in source.

id
Snowflake id;

Undocumented in source.

lastMessageID
Snowflake lastMessageID;

Undocumented in source.

name
string name;

Undocumented in source.

overwrites
PermissionOverwriteMap overwrites;

Undocumented in source.

parentID
Snowflake parentID;

Undocumented in source.

position
short position;

Undocumented in source.

recipients
UserMap recipients;

Undocumented in source.

topic
string topic;

Undocumented in source.

type
ChannelType type;

Undocumented in source.

Mixed In Members

From mixin Model

From mixin Permissible

Meta