Skip to content

API documentation

Kayra Uylar edited this page Mar 21, 2024 · 1 revision

Subscribing to events

All events will be subscribed after subscribe_to_events is called, and the related signals will be fired when any event is received. Make sure to call that method after your OAuth2 flow.

Commands

All methods under discord.commands in the JavaScript SDK is prefixed with command_ in Godot. Since they're all async functions, make sure to yield/await them.

You can find the command documentation in the Discord Developer Portal

Return values

Everything is a dictionary. I am sorry.

Clone this wiki locally