Сам код:
class Users(disnake.ui.Select):
def __init__(self, bot):
self.bot = bot
options = [disnake.SelectOption(label=member.name) for guild in self.bot.guilds for member in guild.members]
super().__init__(
placeholder="Выберите участника",
min_values=1,
max_values=1,
options=options,
)
async def callback(self, interaction):
if self.values[0] == interaction.user:
return await interaction.response.send_message(f"Вы не можите заблокировать себя", ephemeral=True)
else:
channel = interaction.user.voice.channel
member = self.values[0]
await channel.set_permissions(member, connect = False)
await member.move_to(channel=None)
await interaction.response.send_message(f"Вы заблокировали {member}", ephemeral=True)
Ошибка: