discord.is_connected

Client

Retrieves whether the Discord client is currently authenticated and connected


Syntax

local result = discord.is_connected()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
boolresulttrue if the Discord client is authenticated and connected, false otherwise

Examples

Check if the discord client is currently connected
engine.print("info", "Discord connected:", discord.is_connected())

On this page