change_bot_status(Args{status_presence: "Online", status_type: "Playing"})
Change Bot Status
BlockUtilities
Update the bot's presence and status text.
Avoid changing status too frequently to prevent disconnects. It may take up to 5 minutes for a status change to take effect.
Inputs
Status PresenceRequired
Presence indicator.
OptionsOnlineIdleDo Not Disturb
Status TypeRequired
Activity type.
OptionsPlayingListeningWatchingNone
Status Text
Custom status message (max 100 characters).
Example: invt.bot/to/status
Build a bot using blocks like Change Bot Status
Use this block in our visual flow editor. Bots are hosted 24/7 for free on inventor.bot.
Advanced Documentation
This documentation can be useful when using code mode. View as Markdown
ID:
change_bot_statusInputs
| Field | InventScript name | Value |
|---|---|---|
| Status Presence | status_presence | "Online", "Idle", "Do Not Disturb" |
| Status Type | status_type | "Playing", "Listening", "Watching", "None" |
| Status Text | status_text | e.g. "invt.bot/to/status" |
Example InventScript
More utilities blocks
Log ErrorLog an error to the errors dashboard.Get Error DetailsRetrieve details of a logged error.Discord API PingMeasure current patency to the Discord API.Get Server CountGet the number of servers the bot is in.Custom LoopLoop over a customized range of numbers.Check PermissionCheck if a permission exists in a bitfield.Member/Role Has PermissionsCheck if a member or role has specific permissions.Redact SecretRedact a secret (e.g. example -> e*****e).Get Bot DetailsGet cached details of the current branch's bot user.Generate Snowflake IDGenerate a unique Snowflake-like ID.Update Local VariableSet a local variable to a new value.Append New Line to Local VariableAppend text to a local variable on a new line.CommentAdd a note or comment to your flow. This block does nothing when run.Increment or Decrement Local VariableIncrement or decrement a numeric local variable by a value.