#dynamic options
1 messages · Page 1 of 1 (latest)
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
be aware though that this will break at, i think 26, guilds
ok
i was thinking about making multiple select menus
for each 25 guilds
make a new select menu
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
a modmail bot
autocomplete, for sure
this select menu is in dms
and it should let choice to people to choose what server they want to send a message
should probably make that a command instead - possibly popping up a modal once that's released
a
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
only oauth2
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...
guilds allows /users/@me/guilds to return basic information about all of a user's guilds
https://discord.com/developers/docs/topics/oauth2
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
wow
i understand more now...
https://modmail.xyz/ this horrendous thing that's more down than up
ty for explaining me