-
Notifications
You must be signed in to change notification settings - Fork 1
Setup
This guide will help you setup a new Discord application.
Tip
Find relevant docs with GitHub’s search function, use repo:csp-community/csp-adapter-discord type:wiki <search terms> to search the documentation Wiki Pages.
Create a Discord app on the Discord App portal.
Set your app's "Name". This is required for the csp chat bot framework.
Navigate to Settings->OAuth2 in the newly created app menu.
In the OAuth2 URL Generator panel, check messages.read in the center column and bot in the rightmost column of the SCOPES checkbox list.
Then in the BOT PERMISSIONS checkbox list that appears, check the following items:
View ChannelsSend MessagesSend Messages in ThreadsAttach FilesMention EveryoneAdd Reactions
Copy and past the GENERATED URL link that is generated to install the bot in your channel.
Navigate to Settings->Bot in the newly created app menu.
Ensure that MESSAGE CONTENT INTENT is checked.
Reset your token under the TOKEN section and copy this securely.
You should have an token from the above steps.
These can be configured directly on the DiscordAdapterConfig:
from csp_adapter_discord import DiscordAdapterConfig
config = DiscordAdapterConfig(token="YOUR TOKEN")Alternatively, this could be stored in a local file and the configuration will read them:
.gitignore
.token
.token
<YOUR TOKEN>
from csp_adapter_discord import DiscordAdapterConfig
config = DiscordAdapterConfig(token=".token")This wiki is autogenerated. To made updates, open a PR against the original source file in docs/wiki.
Get Started
Developer Guide