import discord
@client.event
async def on_ready():
Channel = client.get_channel('819245759706300437')
Text= "819248816892936222"
Moji = await client.send_message(Channel, Text)
await client.add_reaction(Moji, emoji='')
@client.event
async def on_reaction_add(reaction, user):
Channel = client.get_channel('819245759706300437')
if reaction.message.channel.id != Channel
return
if reaction.emoji == "":
Role = discord.utils.get(user.server.roles, name="Деранкер FACEIT")
await client.add_roles(user, Role)
client = RoleReactClient(intents=intents)
client.run("тут токен")
При запуске появляется такая ошибка: line 3, in
@client.event
NameError: name 'client' is not defined