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

Slash commands missing features #888

Open
Skye-31 opened this issue Mar 4, 2021 · 2 comments
Open

Slash commands missing features #888

Skye-31 opened this issue Mar 4, 2021 · 2 comments

Comments

@Skye-31
Copy link

Skye-31 commented Mar 4, 2021

In #856 slash commands were implemented. From what I've noticed, these are missing two features.

The first is global slash commands working in DMs (documented here). With the current behaviour, using a slash command in DMs will result in a Runtime error as the Guild ID and member objects are null, instead using a user object.

The second is that there is no method to bulk update slash commands. While this technically hasn't been documented, it was announced in the discord developers server here and is considered stable. This method is necessary for updating several commands at once, including creating, editing and deleting with 1 API request, instead of the several that would otherwise be used.
image

These should both be relatively easy to change.

@Fragonite
Copy link

The permissions field also appears to be missing from the interaction object. See the links below.

https://discord.com/developers/docs/resources/guild#guild-member-object
https://discord.com/developers/docs/interactions/slash-commands#receiving-an-interaction

type Interaction struct {

type Member struct {

@plally
Copy link
Contributor

plally commented May 8, 2021

I opened a pr for bulk overwriting/updating #926

the permissions field has already been implemented

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

No branches or pull requests

3 participants