Skip to content

Commit

Permalink
Merge pull request hackthebox#129 from janssensjelle/feature/macro
Browse files Browse the repository at this point in the history
[FEATURE] Allow ALL_MODS to use `/cleanup`
  • Loading branch information
dimoschi authored Dec 11, 2024
2 parents d9f76ad + d50237b commit 46b2e0a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/cmds/core/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ async def slowmode(
return await ctx.respond(f"Slow-mode set in {channel.name} to {seconds} seconds.")

@slash_command(guild_ids=settings.guild_ids)
@has_any_role(*settings.role_groups.get("ALL_ADMINS"), *settings.role_groups.get("ALL_SR_MODS"))
@has_any_role(
*settings.role_groups.get("ALL_ADMINS"),
*settings.role_groups.get("ALL_SR_MODS"),
*settings.role_groups.get("ALL_MODS")
)
async def cleanup(
self, ctx: ApplicationContext,
count: Option(int, "How many messages to delete", required=True, default=5),
Expand Down

0 comments on commit 46b2e0a

Please sign in to comment.