-
Notifications
You must be signed in to change notification settings - Fork 60
Open
Description
I get a silent failure when I leave the 'description' as blank to CreateGlobalApplicationCommand, maybe this is not allowed by the API, but I think there would be an error response / exception at least if so. As opposed to just silently terminating.
Basically:
let f d = basicCallFetch $ CreateGlobalApplicationCommand appId $ (CreateApplicationCommandChatInput "configure123" d (Just $ ApplicationCommandOptionsValues v) True)
-- this fails silently?
f ""
-- f "this does not"
f "" will terminate silently
f "exampleString" will not
A completely minimal example project describing this is here: https://github.com/chrissound/713 (you'll need to set your API token and application id).
I determined it's silently failing because in the first case (in that repo) it ouputs:
Hello, Haskell!
"1"
Ended
"Done"
While in the second case:
Hello, Haskell!
"1"
"2"
Metadata
Metadata
Assignees
Labels
No labels