So I've been seeing clickable commands that will insert into the message box for a while now - not a big issue, I've done that and it worked fine on Mobile, however I've now seen a Bot being able to do that on the PC Client of Discord and i previously thought its a Mobile thing
for reference i have attached screenshots
The first screenshot is a message that MEE6 has sent, the second one is a message that i tried on my own bot
I'm "embedding" commands like this: <command-name:applicationId>
#Clickable Commands on PC - Help
1 messages · Page 1 of 1 (latest)
ah
how would i get the commandId
i already made it so the commands are clickable on the help command on mobile it would be super useful if it worked on all clients so im gonna refactor it to use that approach
DiscordSocketClient.GetGlobalApplicationCommandAsync()
or well
SocketGuild.Get......CommandsAsync()
for guild ones
thanks
can i then like
get the commands by name from that list?
for example
someCommandList["rewards-help"]
by name, yah
not with index operator
so .FirstOrDefault
it also returns all command types
and that
message/user & slash
as long as i can get the commands by name, any way is alright
gotta check that a command is a slash one
- you only need top level ones, don't search for subcommands
ye
i didnt even know its called subcommands i always just called them arguments / parameters