2021-07-28

name 'check' is not defined

this is the code:

@client.command()
@commands.has_permissions(manage_channels=True)
async def close(ctx: commands.Context):
    msg = await ctx.send("Are you sure you want to close the ticket?")
    msg = await client.wait_for('message', check=check)
    if msg.content.lower() == 'yes':
        await ctx.channel.delete()
    if msg.content.lower() == 'no':
        await ctx.send("Ok, i dont delete this ticket")


from Recent Questions - Stack Overflow https://ift.tt/2UTJxUA
https://ift.tt/eA8V8J

No comments:

Post a Comment