Discord.py | Бот игнорирует ивент on_member_join
Команды в боте работают, а ивенты он игнорирует. После входа пользователя на сервер - ничего не происходит.
import discord
from discord.ext import commands
intents = discord.Intents(messages=True, guilds=True)
intents.reactions = True
bot = commands.Bot(command_prefix='!', intents=intents)
@bot.command()
async def ping(ctx):
await ctx.reply('pong')
@bot.event
async def on_member_join(member):
guild_welcome = {1011866030278193175}
welcome = bot.get_channel(guild_welcome[member.guild.id])
embed=discord.Embed(title="Привет", description=f"{member.mention}, привет!", color=0xCC974F) #Embed
await welcome.send(embed=embed) #Отправка сообщения
bot.run('token')