$setBotAvatar
Sets the bots avatar in the developers portal and globally. Bot is automatically rate limited to 2x per hour by the Discord API!

FUNCTION USAGE

  • $setBotAvatar[imageURL]

Properties:

imageURL - A valid image URL to set as the new bots avatar.
Bot automatically is rate limited to 2x per hour by the Discord API! Bot will not change the avatar after the 2nd change in the same hour. No errors will occur during this cooldown. Catch the cooldown with a limiter yourself.
Example: Setting the bot avatar with a 30 minute global cooldown.
1
bot.Command({
2
name: "botpfp",
3
code: `
4
New bot avatar: \`$message[]\`
5
$setBotAvatar[$message[]]
6
$globalCooldown[30m;Cooldown for {time}]
7
`
8
})
Copied!
Last modified 4mo ago
Copy link
Contents
Properties: