serenity-rs / poise

Discord bot command framework for serenity, with advanced features like edit tracking and flexible argument parsing
MIT License
651 stars 115 forks source link

None of the commands specified work, `Ready` shows the server I am testing in is "Unavailable" #52

Closed Kirottu closed 2 years ago

Kirottu commented 2 years ago

That is about it, the Ready value in user_data_setup which I presume could be used for a ready function to report that the bot has logged in, has the guild I am testing in reported as unavailable like this:

guilds: [UnavailableGuild { id: GuildId(<The id for the guild>), unavailable: true }]

With the serenity standard framework this worked fine. Also it is not only slash commands that do not work, I can not use the register provided by examples or help.

kangalio commented 2 years ago

Can you test with vanilla serenity on the next branch (what poise uses, cargo docs) whether the guild is shown as unavailable in the Ready event too?

The latest serenity version on the next branch switched to a new Discord API version (v10), which might be the cause of your problem

Kirottu commented 2 years ago

That does seem to be the issue yes, after getting my project to compile for the next branch it gives the same UnavailableGuild output and I can not run any of the commands.

Kirottu commented 2 years ago

And I pressed the wrong button. Good job me.

kangalio commented 2 years ago

Can you create an issue on the serenity repository? This issue seems to be outside poise's control

Kirottu commented 2 years ago

Yeah I guess I will do that, thank you anyway! Now closing for real.