mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-07 15:48:29 +02:00
Remove unnecessary variables
This commit is contained in:
parent
c43710a429
commit
982a4bb056
2 changed files with 2 additions and 5 deletions
|
|
@ -26,12 +26,10 @@ def get_member_or_user(ctx: Union[ApplicationContext, Context], user_id: int) ->
|
|||
return member
|
||||
|
||||
# Try to fetch the user
|
||||
user = ctx.bot.get_user(user_id)
|
||||
return user
|
||||
return ctx.bot.get_user(user_id)
|
||||
|
||||
# Guild exists, use that instead
|
||||
mem = ctx.guild.get_member(user_id)
|
||||
return mem
|
||||
return ctx.guild.get_member(user_id)
|
||||
|
||||
|
||||
def get_display_name(ctx: Union[ApplicationContext, Context], user_id: int) -> str:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue