moymo,Docs
Skip to content
HTTP API Resources

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 ​

FieldTypeDescription
idUUIDThe application's id, which is also its OAuth2 client_id
namestringThe name
summarystringOne line about it
icon?stringA path on moymo.net. Left out when the application has none
statestringDRAFT, IN_REVIEW, PUBLISHED or SUSPENDED
bot_user_id?UUIDThe id of the application's bot. Left out when it has none
intentsarray of stringsThe 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": []
}

The wiki is for Moymo's members and developers. Something wrong or missing? Use "Suggest a change" on any page.