Add "Guild" command option type #3287
Replies: 4 comments
-
While what wicked mentioned is a possibility it's not very user friendly as users shouldn't be having to add the bot to be able to use it in dms imo. I agree we just need a small field on the command for where it's usable, aka a list of channel types or just a simple "guild", "private" or "all" setting. Just like xSke I have a lot of commands that just can't do their job in dms. like roleplay command such as |
Beta Was this translation helpful? Give feedback.
-
This proposal was more about offering an argument type of "Guild" that'd prompt the user with a guild selector, like the User, Channel and Role type, to use as a parameter for existing commands. |
Beta Was this translation helpful? Give feedback.
-
This is probably necessary due to commands in DMs. It doesn't make sense in the context of a guild channel, since you already know the guild you're in, but for commands in DMs you may need to specify which guild the user wants (if they and your app share multiple) EDIT: Just 'cause it was on my mind, I don't think there's a security problem here, in case anyone was thinking that. This would not allow for a bot to learn the full list of a user's guilds like it can through OAuth2. This is the same as pasting an ID yourself. No one called it out here, but just in case a passerby was wondering :D |
Beta Was this translation helpful? Give feedback.
-
Upvoting this! In our usecase we require our members to link their Discord account with their account in our organisation, and until that doesn't happen the member will be unable to type in any guild channel. In order to force an update of their roles we would like to use a slash command in DMs where the user indiicates the guild in which they want them updated once they have linked their accounts together. |
Beta Was this translation helpful? Give feedback.
-
Description
This proposal would add a "guild" command option type. It would allow users to select a guild they are in, and use that as a command argument.
Why This is Needed
My bot has several commands that configure options on a per-guild basis. Currently, these commands only apply to the guild the command is executed in, and thus do not work in DMs, and there's no way to "cross-configure" (eg. if you want to disable functionality in a guild you don't have send message access in).
There's currently no (realistic at scale) way for bots to get a list of every guild they share with a user for a name lookup, so the only way to do this currently is to expect users to get the guild ID...
Alternatives Considered
On a small scale, a string parameter with the guild name could work. On a larger scale, an integer parameter with the guild ID could also work. However, neither of these provide a nice UX especially for users that don't know to enable developer mode.
Additional Details
Beta Was this translation helpful? Give feedback.
All reactions