PyBotDevs / Codebot

A Discord bot that can run codes in Discord!
1 stars 0 forks source link

Update commands to slash #1

Open notsniped opened 2 years ago

notsniped commented 2 years ago

Proposal for Slash Commands

Not sure if its the case for all clients, but Discord has made it mandatory for all clients to use some sort of implementation for slash commands for use after 31st August 2022. Maybe it would be a good idea to rewrite the source code to have slash command implementation (?)

If I have extra time, I may make a PR on this with the complete commands

XyrenTheCoder commented 2 years ago

Proposal for Slash Commands

Not sure if its the case for all clients, but Discord has made it mandatory for all clients to use some sort of implementation for slash commands for use after 31st August 2022. Maybe it would be a good idea to rewrite the source code to have slash command implementation (?)

If I have extra time, I may make a PR on this with the complete commands

sure if u (or anyone) hav time to code that in a seperated cog, however i dont want to delete to original cog yet

notsniped commented 2 years ago

I dont know if slash commands have support for cogs (yet). I will have to experiment myself, and if I find out I will work on this proposal again

notsniped commented 2 years ago

Found out that slash commands don't work in cogs, but support can be added by using the Pycord library