#Remainder

1 messages · Page 1 of 1 (latest)

upbeat quail
#

Does remainder no longer work? Went to fiddle with a module and noticed if i do something like public async Task DoMath([Remainder]string input) and then launch the command in discord it says BadArgCount now and doesn't fire off at all?

daring kelp
#

Just a sanity check... that's a text command, right?

upbeat quail
#

yeah. my code is probably Not The Best but its what i do be knowing

#

At some point i'll get around to / commands but I also read that those cant take remainder arguments apparently

crystal tinsel
#

The interaction framework is pretty chill tho

upbeat quail
#

probably why my remainder option is no longer working

#

I dont like that i cant leave it blank and have a default option though (unless i read another help post wrong)

crystal tinsel
#

you can have defaults

#

in this commands case "as-embed" and "embed-title" are both optional

upbeat quail
#

ah. that would work then. guess i need to figure out how to swap to slash... my bot is built on a very old framework that im surprised is still working tbh

crystal tinsel
#

you can set them like youd set any other default