SERLatBTH / discord

A simple bot to manage our SERL discord server
MIT License
0 stars 1 forks source link

Slash commands are unable to sync #12

Closed ZuliusRoolf closed 2 months ago

ZuliusRoolf commented 2 months ago

Discord supports slash commands, but when the bot is updated with added or removed commands, the user needs to restart discord to see the effect. This shouldn't me necessary as discord bots should be able to sync changes to the server and update all other clients when something has changed.

ZuliusRoolf commented 2 months ago

According to this reddit thread there is an example listed on a github gist discussion. I was not able to identify the solution in the discussion. I was impatient and the links are a bit broken for me.

Found another response to the reddit thread from thereal0ri_ where they linked to a github repo named TheAdministrator. The repository is the reddit user's self created documentation on how to setup a discord bot. The python script is very long, but has a very neat order to it so while it felt overwhelming, it was easy to read.