Erisa/Cliptok

Bug: Apps context menu disappearing

Closed this issue · 5 comments

slash.RegisterCommands<SlashCommands>(cfgjson.ServerID);
could switching to global commands solve the issue?

Erisa commented

I doubt it. I've seen the bug happen with bots that have global commands all the same.

It's a Discord bug I'm pretty sure, rather than anything on my end.

Does it happens with bots using other libs? I know some bots using discord.js not having this issue after restarting
But whatever, no matter the library, I agree on a Discord bug, it shouldn't do that regardless.

Also, that's only a suggestion and I'm sure you already though of it lol but anyway, may you try to report/ask on Discord Developers / Discord API server about it?

I think that this might be due to DSharpPlus behavior of trying to override all commands upon registering.
Update: The code mentioned in discordjs.guide also override that too, but it's rather strange because both libraries are essentially doing the same thing.

Erisa commented

I was under the impression that was the most reliable way to do things.
If anyone has any suggestions for how I can resolve it in my code then I'm more than happy to give it a try, but if it's a problem with the library or Discord then I'm not going to change anything.

Erisa commented

After some extra looking and some observation of the issue happening in servers with far more bots, I have determined it's a problem with the Discord client itself and has nothing to do with the bot restarting or not restarting. Potentially this is caused by client connection problems, and I have found no information to suggest there is anything I can do about it.