LiBa001/disputils

Message after menu

Closed this issue · 1 comments

When I send a menu, messages that should be sent after the menu is sent only appear once the menu is inactive. Is it possible to have messages below the menu while it's still active?

await helppaginator.run()
staticembedmessage = await ctx.send(embed=staticembed)
await ctx.send("Don't forget to check out `;premium`!")

The last 2 only send after the menu is over.

The await in await helppaginator.run() makes sure that the program waits for the paginator to finish, before continuing execution. If you do not want to wait at that point, you should probably execute the paginator as an asyncio task:

paginator_task = asyncio.ensure_future(helppaginator.run())  # schedule paginator in the background
. . .  # do your other stuff
await paginator_task  # finally, wait for the paginator to finish