Vital.sandbox
Discord

discord.set_state

Client

Sets the state text of the Discord rich presence activity


Syntax

local status = discord.set_state(state)

Parameters

TypeNameDescription
stringstateActivity state text to be displayed

Returns

TypeNameDescription
boolstatustrue on successful execution, or false on failure

Examples

Set the state text on a rich presence activity
discord.set_state("In a match")

On this page