admin alias
This commit is contained in:
parent
ae0f11ce53
commit
195bace135
@ -214,7 +214,7 @@ class UserConverter(IDConverter):
|
||||
|
||||
if match is not None:
|
||||
user_id = int(match.group(1))
|
||||
result = ctx.bot.get_user(user_id) or _utils_get(ctx.message.mentions, id=user_id)
|
||||
result = await ctx.bot.try_user(user_id) or _utils_get(ctx.message.mentions, id=user_id)
|
||||
else:
|
||||
arg = argument
|
||||
|
||||
|
@ -231,6 +231,8 @@ class Permissions(BaseFlags):
|
||||
"""
|
||||
return 1 << 3
|
||||
|
||||
admin = administrator
|
||||
|
||||
@flag_value
|
||||
def manage_channels(self):
|
||||
""":class:`bool`: Returns ``True`` if a user can edit, delete, or create channels in the guild.
|
||||
|
Loading…
x
Reference in New Issue
Block a user