Хорошо, поэтому я хочу сделать так, чтобы он спрашивал вас, какую роль вы хотите назвать, затем вы вводите это, и он говорит: Введите "? Подтвердите, чтобы получить доступ к серверу!" Я получил это, но не работает: / нужна помощь
@bot.command()
async def verification(ctx, *args):
guild = ctx.guild
msg = ' '.join(args)
def check(message):
return message.author == ctx.author and message.channel == ctx.channel and message.content.lower() == msg
await ctx.send("What do you want to Name the Role?")
await bot.wait_for('message', check=check, timeout=60)
await guild.create_role(name=msg, hoist=True, reason="Verification Role Creation", colour=discord.Colour(0x979c9f))
await ctx.send("**Type ?verify to gain Access to the Server!**")