#How can I remove bots and myself on a slash command (select user)?

1 messages · Page 1 of 1 (latest)

frail forge
#

don't think you can add your own filters

#

you could use an autocomplete to return a list of specific users

#

but then it's up to you to convert them to proper member objects

simple canopyBOT
#

Here's the slash autocomplete example.

frail forge
#

the autocomplete function returns a list

#

so lets say you have players which is a list of discord.Member, you could return [str(m) for m in players]

#

but that would make the variable as a string, so you might find it better to use OptionChoice so you can set the ID separately... all in all it's messy but it works