#dynamic options

1 messages · Page 1 of 1 (latest)

abstract shore
#

you don't need to call addOptions per guild, you can just .addOptions(guilds.cache.map(...)) the mapped guilds

so map guilds to select options

main lark
#

ty

#

oh ok

abstract shore
#

be aware though that this will break at, i think 26, guilds

main lark
#

i was thinking about making multiple select menus

#

for each 25 guilds

#

make a new select menu

abstract shore
#

stat still doesn't scale well

#

what's your use case here? what are you trying to do with this?

#

sounds like an auto complete option in a slash command would be preferable

main lark
#

a modmail bot

abstract shore
#

autocomplete, for sure

main lark
#

this select menu is in dms

#

and it should let choice to people to choose what server they want to send a message

abstract shore
#

should probably make that a command instead - possibly popping up a modal once that's released

main lark
#

a

abstract shore
#

there isn't even a feasible way to know which guilds the bot shares with this user unless you try to fetch it on every guild the bot is in

main lark
#

yes

#

any method for check what are similar servers between bot and user

abstract shore
#

only oauth2

main lark
#

a

#

i wonder how a bot know what server i and the bot arr

#

there a bot that check this

#

oh wait yes you right

#

only oauth2...

abstract shore
main lark
#

it will be hard...

#

:/

abstract shore
#

there is a reason why modmail bots are usually only for one server

#

though there is one big one, and i suppose they do a ton of member fetching, i cannot think of any other way

main lark
#

wow

main lark
abstract shore
main lark
#

ty for explaining me