Skip to content
This repository was archived by the owner on Apr 10, 2025. It is now read-only.

Latest commit

 

History

History
34 lines (19 loc) · 1.3 KB

File metadata and controls

34 lines (19 loc) · 1.3 KB

Events

The events object is a read-only hash of string values. It is provided to simplify plugin development, as some of the event names exposed by discord.js are quite creative. This will also allow Themis to provide support custom events originating outside of Discord at a future time.

This data-structure is exposed on the Themis API object, available via importing src/api.js into your script.

const api = require('src/api');
api.events // right here

If developing a plugin, api is available via require('../api')

Properties

DISCONNECTED Discord.js

string - the bot was disconnected from Discord for some reason

string - the bot has encountered an error

JOIN_SERVER Discord.js

string - the bot has joined a server

string - the bot is connected and ready to service requests

RECONNECTED Discord.js

string - the bot has reconnected to discord