I have code like this:
@bot.command(pass_context=True)
@commands.has_any_role(admin, moderator, ghostluko)
async def ver(ctx,member:discord.Member = None):
role = ctx.guild.get_role(role_id=868210259284619324)
role1 = ctx.guild.get_role(role_id=905358001270046770)
await ctx.message.delete()
await member.add_roles(role)
await member.remove_roles(role1)
await ctx.send(f'{member} дал роль "{role}"')
after I add this, other commands start do not work
@bot.event
async def on_message(message):
embedbotreply = discord.Embed(description = f"Напишите help для подробной информации. Ваш префикс: {bot.command_prefix}", color = 0x8147fc)
if bot.user.mentioned_in(message):
await message.channel.send(embed = embedbotreply)
@bot.command()
async def ping(ctx):
embedping = discord.Embed(description = f" Мой пинг: {format(round(bot.latency, 1))} ms!", color = 0x8147fc)
await ctx.send(embed = embedping)
await ctx.message.delete()
Also, on_member_join do not work. I don't know what to do.