Get Instance

A Help page explaining how to get the Client / Discord instance

To get an instance of Discord either use the variable `$discord` (in case you're in your index file) or

Use the instance method of Discord:

Discord::getInstance()

This quite simple method will return the last instance of Discord, in there, the Client instance with all guilds should be stored.

You can access the Client instance by using

Discord::getInstance()->getClient()

Last updated