NameError discord.py
import discord
from discord.ext import commands
client = commands.Bot( command_prefix = '.' )
@client.event
async def on_ready():
print(' Бот подключен. ')
@client.command()
@commands.has_role(item = 'Ведущий')
async def poll(message):
await message.channel.send('Голосуем.')
await guild.add_reaction(emoji = ':white_check_mark:')
client.run( 'censored' )
Ошибка:NameError: name 'guild' is not defined
Раньше всё было нормально. Но я купил себе новый ноутбук и здесь переменную с класса модуля не видит. Помогите, кто может.