dartscord library

Classes

Channel
A Channel resource. Could potentially be any of ChannelType.
ChannelCreateEvent
ChannelDeleteEvent
ChannelPinsUpdateEvent
ChannelUpdateEvent
DiscordClient
Embed
An Embed object. Can be self-assembled and sent.
EmbedAuthor
An Embed author object. Can be self-assembled for an Embed, or chained on the original Embed.
EmbedField
An Embed field object. Can be self-assembled for an Embed, or chained on the original Embed.
EmbedFooter
An Embed footer object. Can be self-assembled for an Embed, or chained on the original Embed.
EmbedImage
An Embed image object. Can be self-assembled for an Embed, or chained on the original Embed.
EmbedProvider
An Embed provider object. Can be self-assembled for an Embed, or chained on the original Embed.
EmbedThumbnail
An Embed thumbnail object. Can be self-assembled for an Embed, or chained on the original Embed.
EmbedVideo
An Embed video object. Can be self-assembled for an Embed, or chained on the original Embed.
Emoji
An Emoji resource. Can correspond to a guild or be a global emoji.
Game
A Game resource. Can be self-assembled to set the game.
Guild
A Guild resource. Contains information on what is known as a Server through Discord.
GuildCreateEvent
GuildEmojisUpdateEvent
GuildIntegrationsUpdateEvent
GuildRemoveEvent
GuildUnavailableEvent
GuildUpdateEvent
Invite
An Invite object. Create with TextChannel.createInvite.
Member
A Member resource. Modified User object that corresponds to a specific guild. Contains information such as nickname, roles, etc.
MemberAddedEvent
MemberBannedEvent
MemberRemovedEvent
MemberUnbannedEvent
MemberUpdatedEvent
Message
A Message resource. Create with TextChannel.sendMessage or DiscordClient.sendMessage.
MessageCreateEvent
MessageDeleteBulkEvent
MessageDeleteEvent
Overwrite
An Overwrite object. Can be directly created and used with TextChannel.modify and TextChannel.modifyPermission.
Packet
PresenceUpdateEvent
ReactionAddEvent
ReactionRemoveAllEvent
ReactionRemoveEvent
ReadyEvent
Role
A Role resource. Create with Guild.createRole.
RoleCreatedEvent
RoleDeletedEvent
RoleUpdatedEvent
Snowflake
TextChannel
A Text Channel resource. Could be any of ChannelType suffixed with Text.
TypingStartEvent
User
A User resource. Not used for guild membership.
UserUpdateEvent
VoiceChannel
Rather unfinished class
Webhook
A Webhook resource. Create with TextChannel.createWebhook.
WebhooksUpdateEvent

Enums

ActivityType
The activity the user is engaged in.
ChannelType
The type of the channel.
MessageDownloadType
Directs the library how to download messages.
OverwriteType
The type of permission overwrite for the channel.
RolePermission
The role permissions.
StatusType
The user's status.
TokenType
The token type of the authorized bot.

Typedefs

WebSocketEventConstructor(Packet packet) Future<Null>

Exceptions / Errors

BadRequestException
The request was improperly formatted, or the server couldn't understand it.
ForbiddenException
The token provided does not have permission to the resource.
GatewayUnavailableException
There was not a gateway available to process your request. Wait a bit and retry.
HttpResponseException
Base class for HTTP response exceptions.
MethodNotAllowedException
The HTTP method used is not valid for the location specified. (library error?)
NotAuthorException
NotFoundException
The resource at the location specified doesn't exist.
ServerErrorException
The server had an error processing your request. (these are rare)
TooManyRequestsException
You've made too many requests (you are ratelimited)
UnauthorizedException
The token provided was missing or invalid.