Here are some ways that could assist in fixing this issue:
Check you have the client started only once
Make sure you don't have two terminals running at once. This also includes certain bot hosting, where both the terminal and the host are running at once.
Regenerate the token
While this should be your last result, even though it's not that of a big deal, sometimes bot token regenerating could fix the issue, although as I said, keep it as a last result.
Killing the entire process
You can try to completely kill the process by using the Client.destroy()
function inside of your code or pressing cmd + Z
on your keyboard inside of the terminal.
Finally, just try restarting.
Try restarting either your coding platform or computer as a whole, it could assist sometimes in giving the client a quick refresh and might just do the job. It helped me countless of times in the past.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…