Skip to content
Moderation setGuildIcon

$setGuildIcon — Sets a guild icon, returns boolean.

Sets a guild icon, returns boolean.

Syntax

$setGuildIcon[guildID;(url);(reason)]

Parameters

  • guildID (id, required) — The guild to set icon on
  • url (text, optional) — The new icon
  • reason (text, optional) — The reason for this action

Return Value

  • Boolean.

Usage

$setGuildIcon[guildID;(url);(reason)] → result

Example

$setGuildIcon[10;$message[value]]

The value passed ($message[value]) must be a data URI such as data:image/png;base64,...: the function does not download web addresses.

Try it

Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.