discord.set_small_image
Client
Sets the small image asset of the Discord rich presence activity
Syntax
local status = discord.set_small_image(
key,
text = "N/A"
)Parameters
| Type | Name | Description |
|---|---|---|
string | key | Asset key of the small image to display |
string | text | Tooltip text shown when hovering over the small image |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, or false on failure |
Examples
-- Set small image without tooltip
discord.set_small_image("rank")
-- Set small image with tooltip
discord.set_small_image("rank", "Server rank")