aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Den4200 <[email protected]>2020-07-01 00:30:00 +0000
committerGravatar Den4200 <[email protected]>2020-07-01 00:30:00 +0000
commit38bd45d97127504ac38a098d86ebc0a83723110a (patch)
treeea2713b3da4a9fe2f0dbd7f03c3ef5a1a46425fa
parentCreate boilerplate code for the commands (diff)
Implement the get_slowmode function
-rw-r--r--bot/cogs/slowmode.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bot/cogs/slowmode.py b/bot/cogs/slowmode.py
index 9140f3e8f..d4226acec 100644
--- a/bot/cogs/slowmode.py
+++ b/bot/cogs/slowmode.py
@@ -19,6 +19,8 @@ class Slowmode(Cog):
@slowmode_group.command(name='get', aliases=['g'])
async def get_slowmode(self, ctx: Context, channel: TextChannel) -> None:
"""Get the slowmode delay for a given text channel."""
+ slowmode_delay = channel.slowmode_delay
+ await ctx.send(f'The slowmode delay for {channel.mention} is {slowmode_delay} seconds.')
@slowmode_group.command(name='set', aliases=['s'])
@with_role(*MODERATION_ROLES)