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

Comments

Popular posts from this blog

Today Walkin 14th-Sept

Spring Elasticsearch Operations

Hibernate Search - Elasticsearch with JSON manipulation