#Adding a list of users as an option to a command

18 messages · Page 1 of 1 (latest)

crisp rivet
#

If there are 10 users in a channel and I want to not include some of them in some command, i.e. team generation, /random -dontinclude @user1 @user2 @user3, is this possible? Will a stringOption accept a list of users as an input or does it have to be strictly strings?

light sequoiaBOT
prime agate
#

strictly strings

#

you can use a select menu instead though

#

and then you'll be able to choose which users they can select, with a string select menu

#

or you can use a string option with autocompletable choices so you can autocomplete the users but that'd be kinda hard to implement

crisp rivet
#

Hmm, I’ll try implement some stuff and see how it goes

#

But maybe an idea for future releases?

prime agate
#

you'll have to ask discord, not djs

severe galeBOT
#

We are not Discord, just some nerds who develop Discord bots!

crisp rivet
#

And maybe take it as the user id?

prime agate
#

it won't autocomplete so that'd be kinda hard to do

#

but it'll just accept what you typed

#

if you typed @foobar you'll get "@foobar"

crisp rivet
#

Ah, damn

#

Will probably just pass in nicknames and match to users

#

Or the place of the user in the channel -dontinclude 7 8 9