Skip to content
YYBartT edited this page Mar 24, 2023 · 9 revisions

Core

Functions

Constants



Functions

Back To Top

Discord_Core_Create

Initializes the Discord extension. If Discord is not running, it will:

  1. Close your game
  2. Open Discord
  3. Attempt to re-open your game

Syntax

Discord_Core_Create(appId)
Argument Type Description
appId int64 Application identifier

Returns

N/A

Example

Discord_Core_Create(appId);



Back To Top

Discord_Core_RunCallbacks

Requests the extension instances to do work.

⚠️ IMPORTANT It is imperative that this function is called at regular intervals to ensure that all the services offered by the SDK function optimally.

Syntax

Discord_Core_RunCallbacks()

Returns

N/A

Example

/// Step Event
Discord_Core_RunCallbacks();


Constants

Back To Top

Discord_OK

Constant Value Description
Discord_OK 0 A constant that indicates that the result is OK.


Clone this wiki locally