Vital.sandbox
Discord

discord.set_smallimage

Client

Sets the small image asset of the Discord rich presence activity


Syntax

local status = discord.set_smallimage(key, text = "N/A")

Parameters

TypeNameDescription
stringkeyAsset key of the small image to display
stringtextTooltip text shown when hovering over the small image

Returns

TypeNameDescription
boolstatustrue on successful execution, or false on failure

Examples

Set the small image on a rich presence activity
--Set small image without tooltip
discord.set_smallimage("rank")

--Set small image with tooltip
discord.set_smallimage("rank", "Server rank")

On this page