Application
An application is what you make in the Developer Portal: a name, a bot, OAuth2 settings, commands. This resource is the application as its own bot sees it. Everything you edit in the portal is in the Portal API.
Application object
| Field | Type | Description |
|---|---|---|
id | UUID | The application's id, which is also its OAuth2 client_id |
name | string | The name |
summary | string | One line about it |
icon | ?string | A path on moymo.net. Left out when the application has none |
state | string | DRAFT, IN_REVIEW, PUBLISHED or SUSPENDED |
bot_user_id | ?UUID | The id of the application's bot. Left out when it has none |
intents | array of strings | The intents turned on: SERVER_MEMBERS, PRESENCE, MESSAGE_CONTENT |
Get current application
GET
/applications/@me The application the token belongs to, for either credential. A good first call to check a token.
RequestGET
/applications/@me bash
curl https://moymo.net/api/app/v1/applications/@me \
-H "Authorization: Bot $MOYMO_BOT_TOKEN"js
const response = await fetch('https://moymo.net/api/app/v1/applications/@me', {
headers: { Authorization: `Bot ${process.env.MOYMO_BOT_TOKEN}` }
})
const application = await response.json()Response200OKJSON
json
{
"id": "0f6c1a52-3b9e-4c1c-9d1b-6e7d2a8f4b10",
"name": "Dice Roller",
"summary": "Rolls any dice you can name.",
"state": "DRAFT",
"bot_user_id": "b2a40959-d70f-4cd2-892f-1c037515d8fa",
"intents": []
}