mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-09 12:48:54 -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:
parent
d4b6fdea92
commit
0ba9eaeccc
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,
|
ctx,
|
||||||
*,
|
*,
|
||||||
interval: commands.TimedeltaConverter(
|
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),
|
) = timedelta(seconds=0),
|
||||||
):
|
):
|
||||||
"""Changes channel's slowmode setting.
|
"""Changes channel's slowmode setting.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user