Skip to content

/link errors when FC does not include hyphens #30

@dynohack

Description

@dynohack

Example: https://discord.com/channels/1260374850501873674/1260394655111970816/1506330910352609350

When user invokes /link with no hyphens in their friend code, e.g. /link id: 133746658826, the bot surfaces an error:

Failed to link friend code "1337-4665-8826": error json: cannot unmarshal number 133746658826 into Go struct field LinkRequest.pid of type uint32

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions