Answer the question
In order to leave comments, you need to log in
Why is the message sent to the wrong channel?
@bot.command(pass_context=True)
@commands.has_permissions(administrator=True)
async def бан(ctx, member: discord.Member, *, days, reason=None):
channel = bot.get_channel(964228426066194482)
await member.ban(reason=reason)
await ctx.channel.purge(limit = 0)
emb = discord.Embed(color=0x9b59b6)
author = ctx.message.author
emb.add_field(name="✅ Бан", value='Пользователь {} был забанен!'.format(member.mention))
emb.add_field(name="Модератор", value = ctx.message.author.mention, inline = False)
await ctx.send(embed = emb)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question