Пишу бота для дискорда, и тут возникла проблема. Почему то не видит команду kick
Основной код:
# -*- coding: utf-8 -*-
import discord
from discord.ext import commands
config = {
'token':
'TOKEN',
'prefix': '!',
}
intents = discord.Intents.default()
bot = commands.Bot(command_prefix=config['prefix'], intents=intents)
client = discord.Client(intents=intents)
# Kick
commands.has_permissions(administrator = True)
async def kick(ctx,member:discord.Member, *,reason=None):
await member.kick (reason=reason)
bot.run(config['token'])
Вот ошибка
Ignoring exception in command None:
discord.ext.commands.errors.CommandNotFound: Command "kick" is not found