Skip to content

handling failure #2

Description

@patrickkettner

Excited to see this!

If you do wish to support something other than ints, I was wondering how you would expect to fallback from an arbitrary emoji to something else?

Would a failed Badge.set() throw?
Would you specify multiple values as an explicit fallback (e.g. Badge.set({rich: '💯', plaintext: 100}) or Badge.set('💔', '零', 0)?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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