Return type: Permissions
Wraps up the Discord permission value.
The properties provided are two way. You can set and retrieve individual bits using the properties as if they were regular bools. This allows you to edit permissions.
if perm.manage_channels:
The emoji may be a unicode emoji or a custom guild Emoji.
activities = sum([], (member.activities for member in ctx.guild.members))
game_names = [item.name for item in activities if instanceof(item, discord.Game)]
#если нужно только уникальные:
game_names = set(game_names)
async def rtest(ctx, *, member = discord.Member, role = discord.Role):
await member.add_roles(role)
await ctx.send("+")
def check_if_it_is_me(ctx):
return ctx.message.author.id == 85309593344815104
@bot.command()
@commands.check(check_if_it_is_me)
async def only_for_me(ctx):
await ctx.send('I know you!')