- channelsMessagesCreate
Message channelsMessagesCreate(Snowflake channel, inout(string) content, inout(string) nonce, inout(bool) tts, inout(MessageEmbed) embed)
Sends a message to a channel.
- channelsMessagesDelete
void channelsMessagesDelete(Snowflake channel, Snowflake message)
- channelsMessagesDeleteBulk
void channelsMessagesDeleteBulk(Snowflake channel, Snowflake[] messages)
Bulk deletes given messages.
- channelsMessagesList
Message[] channelsMessagesList(Snowflake channel, uint limit = 50, MessageFilter filter = MessageFilter.BEFORE, Snowflake msg = 0)
Gets the messages sent in a channel. (Limit: 100) (Mapped by their IDs)
- channelsMessagesModify
Message channelsMessagesModify(Snowflake channel, Snowflake message, inout(string) content, inout(MessageEmbed) embed)
Edits a message's content.
- getGateway
string getGateway()
Returns a valid Gateway Websocket URL.
- guildsChannelsList
Channel[] guildsChannelsList(Snowflake id)
Collection of channels that are in a guild.
- guildsDelete
void guildsDelete(Snowflake id)
- guildsGet
Guild guildsGet(Snowflake id)
Obtains a Guild from a guild ID.
- guildsMembersKick
void guildsMembersKick(Snowflake id, Snowflake user)
Kicks a member from a guild.
- guildsModify
Guild guildsModify(Snowflake id, VibeJSON obj)
Updates a guild with new data.
- usersGet
User usersGet(Snowflake id)
Obtains a Discord user from ID. (Returns User object)
- usersMeDMSCreate
Channel usersMeDMSCreate(Snowflake recipientID)
Creates a new DM for a recipient (user) ID. Returns a Channel object.
- usersMeDMSList
Channel[] usersMeDMSList()
All the channels the client is currrently handling.
- usersMeGet
User usersMeGet()
The client as a Discord user.
- usersMeGuildsLeave
void usersMeGuildsLeave(Snowflake id)
- usersMeGuildsList
Guild[] usersMeGuildsList()
All the guilds the client is currently handling.
- usersMePatch
User usersMePatch(string username, string avatar)
Updates the client user settings.