Serenity is a Rust library for the Discord API.
This section revolves around simple Serenity examples you can get quickly started with by following these 4 steps:
shuttle init --template serenity
commandshuttle deploy
commandTo get started log in to the Discord developer portal.
Secrets.toml
. It’s very important that you don’t reveal your token to anyone, as it can be abused. Create a .gitignore
file to omit your Secrets.toml
from version control.To add the bot to a server we need to create an invite link.
bot
scope as well as the Send Messages
permission in the Bot Permissions section.This example shows how to build a Serenity bot with Shuttle that responds to the !hello
command with world!
.
Serenity is a Rust library for the Discord API.
This section revolves around simple Serenity examples you can get quickly started with by following these 4 steps:
shuttle init --template serenity
commandshuttle deploy
commandTo get started log in to the Discord developer portal.
Secrets.toml
. It’s very important that you don’t reveal your token to anyone, as it can be abused. Create a .gitignore
file to omit your Secrets.toml
from version control.To add the bot to a server we need to create an invite link.
bot
scope as well as the Send Messages
permission in the Bot Permissions section.This example shows how to build a Serenity bot with Shuttle that responds to the !hello
command with world!
.