Когда пишу команду бот просто нечего не делает, даже ошибку не выдаёт
Вот код
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(kick_members=True)
@bot.command()
async def kick(ctx, user: discord.Member, *, reason="No reason provided"):
await user.kick(reason=reason)
kick = discord.Embed(title=f":boot: Kicked {user.name}!", description=f"Reason: {reason}\nBy: {ctx.author.mention}")
await ctx.message.delete()
await ctx.channel.send(embed=kick)
await user.send(embed=kick)
bot.run(config['token'])