Simple command using Discord Interactions.
Webhook to receive Discord command events. To receive events, you must register your application as a Discord bot.
Parameters
Name | Description | Location | Type | Sample Value |
---|---|---|---|---|
x-signature-ed25519 | Signature of the request payload | Header | string | d1efb...aec35 |
x-signature-timestamp | Timestamp of the request payload | Header | string | 1629837700 |
JSON Body | GitHub webhook payload | Body | Object | See Discord docs |
Response
Sample 200
Response:
Returns a Discord message object.
{
"type": 4,
"data": {
"content": "Hello from Appwrite 👋"
}
}
Sample 401
Response:
{
"error": "Invalid request signature"
}
Setting | Value |
---|---|
Runtime | Python (3.9) |
Entrypoint | src/main.py |
Build Commands | pip install -r requirements.txt && python src/setup.py |
Permissions | any |
Timeout (Seconds) | 15 |
Public Key of your application in Discord Developer Portal.
Question | Answer |
---|---|
Required | Yes |
Sample Value | db9...980 |
Documentation | Discord Docs |
ID of your application in Discord Developer Portal.
Question | Answer |
---|---|
Required | Yes |
Sample Value | 427...169 |
Documentation | Discord Docs |
Bot token of your application in Discord Developer Portal.
Question | Answer |
---|---|
Required | Yes |
Sample Value | NDI...LUfg |
Documentation | Discord Docs |