Skip to content

Commit

Permalink
Add missing guild_only decorator to /timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
LightSage committed Jul 13, 2024
1 parent 3138a54 commit 21acdf6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lightning/cogs/mod/cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,7 @@ async def unmute(self, ctx: ModContext, target: discord.Member, *,
@commands.bot_has_guild_permissions(moderate_members=True)
@hybrid_guild_permissions(moderate_members=True)
@app_commands.describe(target="The member to timeout", duration="The duration for the timeout (max 28 days)")
@app_commands.guild_only()
async def timeout(self, ctx: ModContext,
target: discord.Member = commands.param(converter=converters.TargetMember(fetch_user=False)),
duration: FutureTime = commands.param(converter=FutureTime), *, flags: DefaultModFlags):
Expand Down

0 comments on commit 21acdf6

Please sign in to comment.