#"Working with the Interaction Framework" vs "Slash Command Basics"
1 messages · Page 1 of 1 (latest)
interaction framework
Interaction Framework is the more everyone friendly approach, and is similar to the old Text/Chat Commands.
They both work with application interactions.
Slash Command Basics is if you want to manually manage everything yourself.
ok thanks
it's working i'm so happy!
but i don't have the config singletons, is that okay?
also, the parameter name is "filter" but i want it to be "sort-by". how do i specify the name with interaction framework?
SummaryAttribute
thanks!
[Summary("name", "desc")] Type param
just don't specify one
[Summary("name")]
it keeps saying "filter"
did you register commands after the change?
ehmm
public async Task Browse([Summary("sort-by")] CustomMapBrowseFilter filter)
if i put Summary("sort-by", "b") then the description will show in discord
but if empty, it will keep using "filter" because it's my param name
now this is "b"
Discord.Net.HttpException: The server responded with error 50035: Invalid Form Body
Inner Errors:
BASE_TYPE_BAD_LENGTH: Must be between 1 and 100 in length.
this is what happens if i do Summary("sort-by", " ")
maybe it needs something
cuz it's an empty string
can't even use zws
i think description is a must to have
ok wait
so you won't have these issues again
but that actual issue is - you can't have - in parameter names iirc
I might be wrong here
but try without one
hmm
nvm then
oh wait I thought that was command name
no, this is parameter name
yeah... I'm just dumb sometimes
yeah
dnet set's it to param name if you don't specify one
why isn't it nullable? literally just don't show any text in the ui
discord moment
discord moment
anyway, thanks for the help. i'll go think of a good description for an extremely self explanatory parameter
.
genius
Try a zero width space lmao:
i tried \u200b but i'm gonna try that again
Discord.Net.HttpException: The server responded with error 50035: Invalid Form Body
Inner Errors:
BASE_TYPE_BAD_LENGTH: Must be between 1 and 100 in length.
no luck
i think discord trims it
Try the one in the code block, idk if it’s different
yea i tried the one in the codeblock
Probably c# trim being good 
Maybe try rtl then ltr marker lmao
ok sec
or idk if any of these get trimmed; but worth cycling through https://invisible-characters.com/
dnet doesn't trim those
It's just discord being gud
at least it's good in something lel
i didn't want to give discord a W considering it takes common Ls 
