Skip to content
Prev Previous commit
Next Next commit
Formatting
  • Loading branch information
Cordila authored and Cordila committed Sep 9, 2022
commit c68e2a6c24c2c901e1adec18bf8c35b8cd9ce85a
3 changes: 1 addition & 2 deletions cogs/modmail.py
Original file line number Diff line number Diff line change
Expand Up @@ -1211,7 +1211,7 @@ async def logs_closed_by(self, ctx, *, user: User = None):

session = EmbedPaginatorSession(ctx, *embeds)
await session.run()

@logs.command(name="id")
@checks.has_permissions(PermissionLevel.SUPPORTER)
async def logs_id(self, ctx, key: str):
Expand All @@ -1236,7 +1236,6 @@ async def logs_id(self, ctx, key: str):
session = EmbedPaginatorSession(ctx, *embeds)
await session.run()


@logs.command(name="delete", aliases=["wipe"])
@checks.has_permissions(PermissionLevel.OWNER)
async def logs_delete(self, ctx, key_or_link: str):
Expand Down
4 changes: 2 additions & 2 deletions core/clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ async def validate_database_connection(self):

async def get_user_logs(self, user_id: Union[str, int]) -> list:
return NotImplemented

async def find_log_entry(self, key: str) -> list:
return NotImplemented

Expand Down Expand Up @@ -531,7 +531,7 @@ async def get_user_logs(self, user_id: Union[str, int]) -> list:
logger.debug("Retrieving user %s logs.", user_id)

return await self.logs.find(query, projection).to_list(None)

async def find_log_entry(self, key: str) -> list:
query = {"key": key}
projection = {"messages": {"$slice": 5}}
Expand Down