forked from Pycord-Development/pycord
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Author: noreply@github.com
Line: 939
pycord-next/discord/ext/commands/converter.py
Lines 936 to 946 in e4b48e6
| else: | |
| def resolve_member(id: int) -> str: | |
| # TODO: how tf to fix this??? | |
| m = ( | |
| None if msg is None else discord.utils.find(lambda e: e.id == id, msg.mentions) | |
| ) or ctx.bot.get_user(id) | |
| return f"@{m.name}" if m else "@deleted-user" | |
| def resolve_role(id: int) -> str: | |
| return "@deleted-role" |