Skip to content

Silent failure with CreateGlobalApplicationCommand in v1.12.5 #165

@chrissound

Description

@chrissound

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions