Skip to content

Commit 0634f11

Browse files
committed
Prevent everyone from having access to ?logs subcommands
1 parent aa06a6f commit 0634f11

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cogs/modmail.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,7 @@ async def logs(self, ctx, *, member: User = None):
435435
await session.run()
436436

437437
@logs.command(name='closed-by')
438+
@checks.has_permissions(manage_messages=True)
438439
async def closed_by(self, ctx, *, user: User = None):
439440
"""Returns all logs closed by a user."""
440441
if not self.bot.self_hosted:
@@ -473,6 +474,7 @@ async def closed_by(self, ctx, *, user: User = None):
473474
await session.run()
474475

475476
@logs.command(name='search')
477+
@checks.has_permissions(manage_messages=True)
476478
async def search(self, ctx, limit: Optional[int] = None, *, query):
477479
"""Searches all logs for a message that contains your query."""
478480

0 commit comments

Comments
 (0)