Webhook

A Webhook object

Constructors

this
this(Client client, Snowflake id)

Undocumented in source.

Members

Functions

deleteWebhook
void deleteWebhook()

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

sendMessage
void sendMessage(inout(string) content, inout(string) nonce, inout(bool) tts, inout(MessageEmbed[]) embeds)

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

sendMessage
void sendMessage(inout(string) content, inout(string) nonce, inout(bool) tts, inout(MessageEmbed) embed)

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

Variables

applicationID
Snowflake applicationID;

The Application ID snowflake

avatar
Nullable!(string) avatar;

The webhook's avatar

avatarUrl
Nullable!(string) avatarUrl;

URL to the webhook's avatar

channelID
Snowflake channelID;

The channel ID snowflake

client
Client client;

The client instance that the webhook is linked to

guildID
Snowflake guildID;

The guild ID snowflake

id
Snowflake id;

The snowflake of the actual webhook's ID

name
string name;

The webhook's name

token
string token;

The webhook's token

type
int type;

The webhook's type

url
string url;

The webhook's URL

Meta