Add Guild mention option for global commands
Currently in v13 we have the following options:
-
STRINGsets the option to require a string value -
INTEGERsets the option to require an integer value -
NUMBERsets the option to require a decimal (also known as a floating point) value -
BOOLEANsets the option to require a boolean value -
USERsets the option to require a user or snowflake as value -
CHANNELsets the option to require a channel or snowflake as value -
ROLEsets the option to require a role or snowflake as value -
MENTIONABLEsets the option to require a user, role or snowflake as value
I have a bot that works with a gameserver and the commands work by using a guildId number only. In the past I used DM commands because the bot was only in one guild, but no that it is in multiple guilds, I've had to remove the DM commands because there's no way to mention the guild that you are referring to use the command in.
I guess I could make a workaround, and catch the channel type being DM and have a selection menu providing each guild that both the member and bot are in, but that sounds like a lot of usage to compare each guild from both the member and bot and pulling the guild name to the selection menu. A guild mention in DM option could solve this
-
I could also make the user enter the guildId via an INTEGER option, but not many users will figure out how to turn developer mode on and copy the guildId.
0
請登入寫評論。
評論
1 條評論