Skip to main content

Permission Toggles

Change channel permissions for chosen roles or members on a schedule, such as opening a lounge channel every weekday morning.

Why Use This Feature?

  1. Opens and closes channels at set times, so nobody has to change permissions by hand every day.
  2. Sets the full permission state each time, so a channel always ends up exactly as the rule describes.
  3. Skips holidays with a list of dates, so the schedule doesn't open a channel on a day off.

How It Works

A rule sets one state and never reverts it, so opening and closing a channel takes two rules. There is no slash command for this feature, so changes happen only on the schedule.

Requirements

Settings

FieldDescription
Name (name)The rule's name, used in the audit-log reason, up to 100 characters.
Schedule (toggle-on)The calendar selector that decides when the rule runs, required.
Dates to skip (skip-dates)Optional skip dates in the rule's time zone.
Channel changes (toggles)1 to 25 channels, each with a Channel and its Permission overrides.
Applies to (toggles[].permissions[].target-type)Member (member) or Role (role).
Member or role ID (toggles[].permissions[].user-or-role-id)The Discord ID of the member or role.
Discord permissions (toggles[].permissions[].user-or-role-perms)1 to 50 permissions, each picked from Add a permission… and set to Allow or Deny, stored as true or false.

Permission names are Discord's flag names as discord.js spells them, such as ViewChannel and SendMessages, and they are case-sensitive. Scheduled Posts explains the calendar selector fields.

Example

Permission toggles settings
json
[
  {
    "name": "Open the weekday lounge",
    "toggle-on": { "days-of-week": [1, 2, 3, 4, 5], "hours": [9], "minutes": [0], "time-zone": "America/New_York" },
    "skip-dates": ["2026-11-26", "2026-12-25"],
    "toggles": [
      {
        "channel": { "channel-id": "123456789012345678" },
        "permissions": [
          {
            "target-type": "role",
            "user-or-role-id": "223456789012345678",
            "user-or-role-perms": { "ViewChannel": true, "SendMessages": true }
          }
        ]
      }
    ]
  }
]

Limits

  • Rules — Up to 100, each with up to 25 channels and 25 targets per channel.
  • Permissions — Up to 50 names per target.

Troubleshooting

  • Other permissions reset — Each run replaces the whole overwrite, so list every permission you want to keep for that target.
  • "Every permission name must be supported by the current Discord API." — Check the spelling and capitalization of each permission name.
  • Nothing changed at the scheduled time — The bot was stopped, so that time was skipped, or every try failed. The worker log then shows job_failed with the reason, such as "Discord permission changes are paused while the bot is stopped." or "Missing Permissions".

Changes from the legacy bot

The legacy bot merged changes into the existing overwrite, accepted null to make a permission neutral, worked out whether an ID was a role or a member, and could also run from a chat command. The rewrite replaces the whole overwrite, needs target-type and toggle-on in every rule, and runs only on its schedule.