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
| 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_smallimage("rank")
--Set small image with tooltip
discord.set_smallimage("rank", "Server rank")