mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-07 01:42:30 -05:00
Slowmode now accepts integer only inputs as seconds (#2884)
* Slowmode now accepts integer only inputs as seconds * Added changelog entry
This commit is contained in:
1
changelog.d/mod/2884.enhance.rst
Normal file
1
changelog.d/mod/2884.enhance.rst
Normal file
@@ -0,0 +1 @@
|
||||
Slowmode now accepts integer only inputs as seconds
|
||||
@@ -21,7 +21,7 @@ class Slowmode(MixinMeta):
|
||||
ctx,
|
||||
*,
|
||||
interval: commands.TimedeltaConverter(
|
||||
minimum=timedelta(seconds=0), maximum=timedelta(hours=6)
|
||||
minimum=timedelta(seconds=0), maximum=timedelta(hours=6), default_unit="seconds"
|
||||
) = timedelta(seconds=0),
|
||||
):
|
||||
"""Changes channel's slowmode setting.
|
||||
|
||||
Reference in New Issue
Block a user