import { Client } from "https://deno.land/x/coward@v0.3.2/mod.ts";
Class representing the main client
Methods
Post a channel in a guild. Requires the MANAGE_CHANNELS
permission.
Post a message in a channel. Requires the SEND_MESSAGES
permission.
Create a role in a guild. Requires MANAGE_ROLES
permission.
Delete all reactions with a given emoji on a message. Requires MANAGE_MESSAGES
permission.
Delete all reactions from a message. Requires the MANAGE_MESSAGES
permission.
Delete a ban from a guild. Requires BAN_MEMBERS
permission.
Delete a channel. Requires the MANAGE_CHANNELS
permission in the guild.
Delete a message in a channel. Requires the MANAGE_MESSAGES
permission.
Delete a pinned channel message. Requires the MANAGE_MESSAGES
permission.
Delete a reaction on a message. If deleting a reaction from another user, requires the MANAGE_MESSAGES
permission.
Delete a role in a guild. Requires MANAGE_ROLES
permission.
Get invites in a guild channel. Returns an array of Invite objects. Requires MANAGE_CHANNELS
permission.
Get a DM channel of a user - if there is none, create one.
Modify a channel. Requires the MANAGE_CHANNELS
permission in the guild.
Modify a guild. Requires the MANAGE_GUILD
permission.
Post a typing indicator for a specified channel. Bots should usually not use this, however if a bot is responding to a command and expects the computation to take a few seconds, this may be used to let the user know that the bot is processing their message.
Pin a message in a channel. Requires the MANAGE_MESSAGES
permission.
Put a reaction on a message. Requires the READ_MESSAGE_HISTORY
permission. Additionally, if nobody has reacted to the message with the emoji, requires the ADD_REACTIONS
permission.
Put a role on a member in a guild. Requires MANAGE_ROLES
permission.
Remove a member from a guild. Requires KICK_MEMBERS
permission.
Remove a role from a member in a guild. Requires MANAGE_ROLES
permission.