+ 1
discord.py
I keep trying to make my kick command for my discord bot and I want it to whenever you try to kick some who has an moderater role the bot sends cannot kick (the user) is a moderater But no matter what I do I keep getting "callback must be a coroutine" error What's a coroutine and how do I make callback one?
1 Odpowiedź
0
If you're using Discord.py without knowing the python async / await syntax, please stop and read a course.
A couroutine is basically an asynchronous function that can be awaited. Before python3.7, you simulated coroutines with the 'asyncio.coroutine' decorator, applied on generator functions.