Files
scrapyard-cogworks/wiki/AutoRoom-Commands.md
T
kingston 26a0728e14 docs: move cog documentation into the wiki and stub the README
The root README carried the full ten cog manual while the wiki held the
authoritative pages. Point the repository at the wiki, keep only install and
catalog basics in the README, and remove the per cog documents that are now
folded into wiki source under wiki/.
2026-11-03 12:54:42 -06:00

8.0 KiB

AutoRoom Commands

Two command groups: autoroom for room owners and members, and autoroomset for server administrators. Both are guild only.

Member and owner commands

Group: [p]autoroom, alias [p]vc.

These commands operate on the room the invoking member is currently in, or the room they own. They do not require a permission check beyond being in the room. The cog verifies ownership and replies with a temporary error when the member is not allowed.

Command Aliases Arguments Description
[p]autoroom settings about, info none Shows room settings and current access overwrites
[p]autoroom name none <name> Renames the room, capped at 100 characters
[p]autoroom bitrate kbps <kbps> Sets bitrate, clamped to 8 and the guild limit
[p]autoroom users userlimit <limit> Sets the user limit, clamped to 0 through 99
[p]autoroom claim none none Takes ownership when the previous owner has left
[p]autoroom public none none Makes the room visible and joinable
[p]autoroom locked none none Makes the room visible but not joinable
[p]autoroom private none none Hides the room from everyone not allowed
[p]autoroom allow add <members or roles...> Grants access to one or more members or roles
[p]autoroom deny ban, block <member or role> Revokes access and disconnects affected members

settings

Reports the owner, or "Server Managed" when no owner is recorded. Then the access type derived from the source's member roles, the bitrate in kbps, and the channel's age. A second section lists allowed and denied members and roles taken from the channel's overwrites. Anyone in the room can run it, including members who do not own it.

name

Rate limited by a per-channel bucket of two changes per 604 seconds, where the extra four seconds absorb Discord's own rename handling. Hitting the limit produces a message with the wait time and suggests renaming directly in Discord. When the server requires 2FA for moderation, the message notes that the member needs 2FA enabled to rename the channel manually.

The command deletes the invoking message after a short delay on success.

bitrate and users

bitrate converts kbps to bits per second and clamps between 8000 and the guild's bitrate_limit. users clamps between 0 and 99, where 0 removes the limit. Both confirm with a check mark reaction and delete the command message after five seconds.

claim

Claiming is refused when the current owner is still in the room. Otherwise a two minute per-channel cooldown applies. Administrators, moderators, configured admin and mod roles, and the guild owner bypass both restrictions.

On success the old owner's overwrites are reset to the source's default allow set and the new owner receives the source's owner permissions. The linked legacy text channel, when present, is updated the same way. The channel's stored owner is replaced.

allow and deny

allow accepts several members or roles in one call. deny accepts one, disconnects any member in the room who can no longer connect, and records the denial.

Both require the bot to have Manage Roles on the room. The source must still exist, otherwise the command explains that the room can no longer be modified.

Denying a role removes access for everyone holding it. When the source uses member roles, those roles may still grant connect permission, so the deny can appear to have no effect.

Administrator commands

Group: [p]autoroomset, requiring Manage Server or a Red admin role.

Command Aliases Arguments Description
[p]autoroomset settings none none Shows server access settings and every configured source
[p]autoroomset permissions perms none Checks the bot's permissions for each source
[p]autoroomset create enable, add <source> <category> Creates or enables a source with an interactive setup
[p]autoroomset disable delete, del <source> Removes a source and stops room creation
[p]autoroomset access none none Parent group for access settings

settings

Prints a server section with admin access, moderator access and bot roles, then a section for each source showing its category, room type, name format and text settings. Source names are resolved to channel mentions where possible.

permissions

Compares required permissions with the bot's effective permissions on the source and destination, and reports missing entries with a hint to grant them and rerun the command. This is the first command to run when room creation fails.

create

Interactive. Asks for the source channel if not supplied, checks permissions, then asks for the destination category and room type. It can create a new source channel or adopt an existing one. On completion the source is stored in the custom AUTOROOM_SOURCE group with default settings.

disable

Deletes the source configuration. Existing rooms are not deleted immediately; the cleanup task removes them once their source is gone.

access

Command Behavior
[p]autoroomset access admin Toggles administrator access to every room
[p]autoroomset access mod Toggles moderator access to every room
[p]autoroomset access bot add <role> Adds a role that may enter every room
[p]autoroomset access bot remove <role> Removes such a role

Administrator and moderator checks use Red's configured roles for the guild, not Discord's permission flags alone.

modify

Parent group for per-source settings. Each subcommand takes the source channel when a guild has more than one.

Subcommand Purpose
[p]autoroomset modify category Changes the destination category
[p]autoroomset modify type Sets the default room type: public, locked, private or server
[p]autoroomset modify name Chooses the name format: username, game or custom, and accepts a custom template
[p]autoroomset modify text Sets the hint message posted in a new room's text channel, or disables it
[p]autoroomset modify legacytext Enables or disables a legacy per-room text channel
[p]autoroomset modify legacytexttopic Sets or disables the topic on that legacy text channel
[p]autoroomset modify defaults Resets source settings to their defaults
[p]autoroomset specialperms Parent group for owner permission toggles

specialperms ownermodify controls whether owners may change the room's channel settings. specialperms sendmessage controls whether owners and members may send messages in the linked text channel. Both are stored per source as perm_owner_manage_channels and perm_send_messages.

modify type server

The server type behaves like a public room, with the server as the owner instead of the creating member. No owner record is written, the creating member receives no owner permissions, and the room cannot be modified through the owner commands. It is the fourth option and can only be set as a source default by an administrator.

Cooldowns

Action Limit Scope
Room creation 2 per 60 seconds Member
Creation warning message 1 per 3600 seconds Member
Rename through command 2 per 604 seconds Channel
Ownership claim 1 per 120 seconds Channel

Cooldowns are in memory and reset when the cog reloads.

Failure messages

Messages are sent as temporary errors and often delete themselves.

Situation Message
Command used outside the author's room A request to use the command in their own AutoRoom
Source deleted The source no longer exists, so the room cannot be modified
Missing Manage Roles The bot lacks the permission and the message asks the member to tell staff
Claim while owner present Ownership can only be claimed after the owner leaves
Claim cooldown Wait time before claiming, in case the previous owner returns
Rename cooldown The limit, the window, and the remaining wait