Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace CommandsNext with Discord’s slash commands #11

Open
fredster33 opened this issue Mar 7, 2021 · 5 comments
Open

Replace CommandsNext with Discord’s slash commands #11

fredster33 opened this issue Mar 7, 2021 · 5 comments

Comments

@fredster33
Copy link

I’m not sure if it’s currently available for the library this bot is using, but a slash command option could be implemented.

@stjohann
Copy link
Owner

stjohann commented Mar 8, 2021

It is not implemented yet in DSharpPlus and I am not sure if it will be on my radar if it gets implemented. There’s not a lot of use for it since most commands are restricted to moderators, so they don’t have to be constantly available.

@xKaelyn
Copy link

xKaelyn commented Oct 1, 2021

Added DSharpPlus' official slash command module - see #12

@stjohann
Copy link
Owner

stjohann commented Dec 4, 2021

For now I am marking this with wontfix label for the purposes of the issue tracking. I am not closing this issue because it is a valid thing to consider generally.

I am not sure that working on this issue has value to moderators, who are currently (2021) using DiscordWikiBot’s commands most often. If there were more commands for regular users, then wontfix can be easily removed, as they should probably work with slash commands. But right now the only commands for users are !help and !status, and they can be easily entered as text.

(There are also issues with how Discord implemented slash commands, for example requiring new permissions for bots for them to work, so it is tedious to seek to implement them now in any bot that was created before they became a thing.)

@stjohann stjohann changed the title Use Slash Commands Replace CommandsNext with Discord’s slash commands Dec 4, 2021
@Rexogamer
Copy link

One minor step towards adding this - if this might eventually become a thing - would be to start requesting the slash commands permission when adding the bot to new servers. It's not a particularly dangerous addition and would make the transition slightly easier.

@stjohann
Copy link
Owner

stjohann commented Feb 7, 2022

Good idea, yep. The code would still need to support both methods, though, since bot commands should not become unusable on any server just because Discord made a thing. Also, to clarify above a bit: I would be open to slash commands PR if it will be written with all the necessary precautions about adding them. This is why this is not a closed issue.

For future me/others: the stuff I described about authorisation is from the official docs (403 errors will be thrown if bot tries creating commands on servers without necessary permissions)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants