core.discord.set_small_image

Client

Sets the small image asset of the Discord rich presence activity


Syntax

local status = core.discord.set_small_image(
    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, false otherwise

Examples

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

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

On this page