An API Client for Discord, written in Dart.
A DiscordClient can be used to:
- Create Application Commands
- Message commands can be selected by right clicking a message and selecting "Apps" then the name of the command
- Slash commands can be used by typing "/" then the name of the command
- Get info on the current set of application commands
- Delete an application command
See example/discord_api_client_example.dart for how to create and call methods on a DiscordClient.
To run the tests and/or example code, add test/credentials.dart with:
const guildId = '...';
const applicationId = '...';
const botToken = '...';For guildId, open Discord, R-click on your server image and select Copy ID.
For the others, go to https://discordapp.com/developers/applications/, select the relevant application, then:
applicationId: “General Information” → “APPLICATION ID”botToken: “Bot” → “Reset Token” → “Copy”