Docs
Dashboard
KyroScript

Access, allowed actions and limits

Three settings decide what a command can do, and they answer different questions:

SettingQuestion it answersExample
permissions:Who can run it? (their Discord permissions)permissions: manage_messages
roles:Who can run it? (their roles)roles: VIP, Supporter
allow:What can the script itself do?allow: balances, roles

Who can run a command

permissions: lists Discord permissions the person needs, all of them. Discord hides the command from people without them, and Kyro checks again when it runs (server admins can change command access in Discord, so Kyro doesn’t rely on that alone). roles: lets in anyone with at least one of the roles listed. Use both and the person needs to pass both.

Permission names:

administrator (Administrator) · manage_server (Manage Server) · manage_roles (Manage Roles) · manage_channels (Manage Channels) · manage_messages (Manage Messages) · manage_nicknames (Manage Nicknames) · manage_threads (Manage Threads) · manage_events (Manage Events) · manage_webhooks (Manage Webhooks) · view_audit_log (View Audit Log) · kick_members (Kick Members) · ban_members (Ban Members) · moderate_members (Timeout Members) · mention_everyone (Mention @everyone) · mute_members (Mute Members) · deafen_members (Deafen Members) · move_members (Move Members) · view_channel (View Channels) · send_messages (Send Messages) · embed_links (Embed Links) · attach_files (Attach Files) · add_reactions (Add Reactions) · use_external_emojis (Use External Emojis) · create_public_threads (Create Public Threads)

Inside a script, check someone’s permissions with has_permission(member, "kick_members") or "kick_members" in member.permissions.

Allowed actions

Some functions change things in your server or your bot’s data. A script can only use them if the action is on its allow: line (in the dashboard, a box you tick). If it’s missing, the script won’t save, and the editor points at the line.

ActionOn the allow: lineLets the script use
Give and take rolesrolesgive_role, take_role
Moderate members and messagesmoderationkick, timeout, ban, unban, purge, delete_message, pin_message (the person running the command needs the same permission)
Change the serverservercreate, edit and delete channels and roles, lock channels, nicknames and server settings (the person running the command needs the same permission)
Post in other channelschannelssend to a channel other than the current one
Ping @everyone, @here and rolesmentionswithout this, mass pings are removed from messages
Change balancesbalanceseconomy.give, economy.take
Change XPxplevels.add_xp
Save datastoragestorage.set, storage.add, storage.delete
Use the internetinternetintegrations.* and http.*
✨ Tip Without mentions, mass pings are removed from what your script sends, so a script can’t be tricked into pinging everyone. And allowing an action never lets someone do more than they could already: kicking still needs the person running the command to have Kick Members.

What your bot needs

Some actions also need your bot to have a Discord permission, like Manage Roles to give roles. The editor lists what a script needs, so you can fix your bot’s role before anyone runs into an error.

Limits

Every run has limits so one script can’t slow down your bot (or anyone else’s). Normal commands never get close.

LimitProMax
Steps per run20,00050,000
Time per run3 seconds5 seconds
Discord actions per run (replies, roles, reactions…)1020
Storage reads + writes per run3060
Times a loop can run1,0001,000
Functions calling functions32 deep32 deep
wait() per run10 seconds10 seconds
Internet requests per run24
Internet requests per bot per day1,00010,000
Sites in the internet allowlistMax only25
Script length20,000 characters50,000 characters
Saved data per bot5 MB50 MB
Size of one saved value4 KB16 KB

A “step” is one small piece of work, like one line or one bit of maths. Text can be up to 100,000 characters, and lists and maps up to 10,000 items. Each command also has a cooldown you choose, and very heavy use is slowed down automatically.

Fair use

Limits keep every bot fast. Trying to get around them, or writing scripts meant to crash bots or Kyro, raid or nuke servers, mass delete channels or roles, mass ban, or spam, breaks the Terms. Those scripts may be switched off automatically, and the bot and account can be suspended.

Was this page helpful?