mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
Make it possible to set slowmode in stage/voice channels (#6108)
This commit is contained in:
parent
6a53d7dcd5
commit
b7c710ac04
@ -30,9 +30,6 @@ class Slowmode(MixinMeta):
|
||||
Interval can be anything from 0 seconds to 6 hours.
|
||||
Use without parameters to disable.
|
||||
"""
|
||||
if not isinstance(ctx.channel, (discord.TextChannel, discord.Thread)):
|
||||
await ctx.send(_("Slowmode can only be set in text channels and threads."))
|
||||
return
|
||||
seconds = interval.total_seconds()
|
||||
await ctx.channel.edit(slowmode_delay=seconds)
|
||||
if seconds > 0:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user