Authorization Windows
The cog maintains four types of authorization windows. Any match is sufficient to authorize an action:| Window | Duration | Description |
|---|---|---|
| Task window | Duration of task | A recognized background task (e.g. sync_bans_task) is actively running. Covers all guilds globally while active. |
| Owner window | 5 minutes | A bot owner ran a command (prefix or slash, including jishaku) in this guild. A guild ID of 0 acts as a global owner window covering every guild simultaneously. |
| Command window | 60 seconds | Any non-owner command was invoked in this guild. |
| Join window | 10 minutes | The bot just joined this guild, covering the flood of auto-bans and role creations during on_guild_join. |
Monitored Audit Log Actions
The following actions are monitored. If the bot performs any of these outside an authorization window it immediately leaves the guild:bankickunbanchannel_deleterole_deleteguild_updatewebhook_createwebhook_deletebot_add
role_create, role_update, channel_update, member_update, and invite_create are not monitored because the bot performs them legitimately and frequently (quarantine setup, mute roles, etc.).