Function TRAP::Utils::Discord::RunCallbacks#

Function Documentation#

bool TRAP::Utils::Discord::RunCallbacks()#

Runs Discord Game SDK updates. When Discord gets closed this function will also destroy the current initialized Discord Game SDK instance.

Remark

Headless mode: This function is not available in headless mode.

Note

This function also tries to reconnect to Discord if it was disconnected. When this happens the last used activity will be set again.

Returns:

True if Discord Game SDK is initialized, false otherwise