add debug log and docstring to handle_notification
This commit is contained in:
parent
cabd0bc1c9
commit
8487f60cff
1 changed files with 6 additions and 0 deletions
|
@ -11,6 +11,12 @@ log.setLevel(logging.INFO)
|
||||||
|
|
||||||
|
|
||||||
async def handle_notification(db_updates, ctx, message, keyword, user_id):
|
async def handle_notification(db_updates, ctx, message, keyword, user_id):
|
||||||
|
"""
|
||||||
|
Async task to dispatch a notification
|
||||||
|
"""
|
||||||
|
|
||||||
|
log.debug(f"- Handling `{keyword}` for {user_id}")
|
||||||
|
|
||||||
member = await ctx.guild.getch_member(user_id)
|
member = await ctx.guild.getch_member(user_id)
|
||||||
|
|
||||||
if not await can_view(ctx, member):
|
if not await can_view(ctx, member):
|
||||||
|
|
Loading…
Reference in a new issue