Usage

import * as coward from "https://deno.land/x/coward@v0.3.2/mod.ts";

§Namespaces

Evt
Options

Namespace for functions

§Classes

Channel

Class representing a channel

Client

Class representing the main client

DMChannel

Class representing a DM channel

Guild

Class representing a guild

GuildChannel

Class representing a channel in a guild

GuildChannelCategory

Class representing a channel category in a guild

GuildEmoji

Class representing an emoji in a guild

GuildMember

Class representing a guild member

GuildNewsChannel

Class representing a news channel in a guild

GuildStoreChannel

Class representing a store channel in a guild

GuildTextChannel

Class representing a text channel in a guild

GuildVoiceChannel

Class representing a voice channel in a guild

Message

Class representing a message

ReactionCustomEmoji

Class representing a custom reaction emoji

ReactionStandardEmoji

Class representing a standard reaction emoji

Role

Class representing a Role

User

Class representing a user

§Variables

Evt.channelCreate

Fired when a channel is created.

Evt.channelDelete

Fired when a channel is deleted.

Evt.channelPinsUpdate

Fired when a message is pinned or unpinned in a text channel. This is not fired when a pinned message is deleted.

Evt.channelUpdate

Fired when a channel is updated.

Evt.guildBanAdd

Fired when a user is banned from a guild.

Evt.guildBanRemove

Fired when a user is unbanned from a guild.

Evt.guildCreate

Fired when - The client is initally connecting. - A guild becomes available to the client. - The client joins a guild.

Evt.guildDelete

Fired when - The client leaves or is removed from a guild. - A guild becomes unavailable.

Evt.guildEmojisUpdate

Fired when a guild's emojis have been updated.

Evt.guildIntegrationsUpdate

Fired when a guild's integrations are updated.

Evt.guildMemberAdd

Fired when a new user joins a guild.

Evt.guildMemberRemove

Fired when a user leaves or is removed from a guild.

Evt.guildMemberUpdate

Fired when a guild member is updated.

Evt.guildRoleCreate

Fired when a guild role is created.

Evt.guildRoleDelete

Fired when a guild role is deleted.

Evt.guildRoleUpdate

Fired when a guild role is updated.

Evt.messageCreate

Fired when a message is created.

Evt.messageDelete

Fired when a message is deleted.

Evt.messageDeleteBulk

Fired when messages are deleted in bulk.

Evt.messageReactionAdd

TODO: Fired when a reaction is added to a message.

Evt.messageReactionRemove

TODO: Fired when a reaction is removed from a message.

Evt.messageReactionRemoveAll

TODO: Fired when a user removes all reactions from a message.

Evt.messageUpdate

Fired when a message is updated.

Evt.ready

Fired when the client is ready.

Evt.typingStart

Fired when a user starts typing in a channel.

Intents

§Interfaces

Options.clientConstructor
Options.createChannel
Options.createMessage
Options.createRole
Options.modifyChannel
Options.modifyGuild
Options.modifyMember
Options.modifyMessage
Options.modifyPresence
Options.modifyRole
Options.putBan