-
-
Notifications
You must be signed in to change notification settings - Fork 751
Introduce command to control slowmode #1019
Copy link
Copy link
Closed
Labels
a: moderationRelated to community moderation functionality: (moderation, defcon, verification)Related to community moderation functionality: (moderation, defcon, verification)a: utilityRelated to utility commands: (bot, eval, extensions, jams, reminders, snekbox, utils)Related to utility commands: (bot, eval, extensions, jams, reminders, snekbox, utils)p: 2 - normalNormal PriorityNormal Prioritys: WIPWork In ProgressWork In Progresst: featureNew feature or requestNew feature or request
Metadata
Metadata
Assignees
Labels
a: moderationRelated to community moderation functionality: (moderation, defcon, verification)Related to community moderation functionality: (moderation, defcon, verification)a: utilityRelated to utility commands: (bot, eval, extensions, jams, reminders, snekbox, utils)Related to utility commands: (bot, eval, extensions, jams, reminders, snekbox, utils)p: 2 - normalNormal PriorityNormal Prioritys: WIPWork In ProgressWork In Progresst: featureNew feature or requestNew feature or request
Type
Fields
Give feedbackNo fields configured for issues without a type.
Context
High profile channels such as
#python-generalhave slowmode enabled to make chat traffic manageable. The amount of delay is adjusted based on current traffic in the channel.Problem
The Discord GUI only allows
@Adminsto choose from a limited amount of options.The API, however, allows much more granular control, taking ints in the range
[0, 21600]. As such, we often use int eval to set custom values, commonly 2 seconds during low traffic times.Proposal
The proposal is to introduce a bot command which will take a channel and a delay, and forward them to the API.
The advantages include:
The implementation should be fairly trivial. Command signature takes a text channel (a
d.pyconvertor makes this convenient), and anintdelay. The delay is checked to ensure it fits into the correct range, with an informative message returned otherwise. If the delay is valid, it is passed to theTextChannel.editmethod (linked above).