diff --git a/channels/emoji.go b/channels/emoji.go index f0bf81c8d3420d5c95c58f8da29b726220f10a7b..4e1e77d4deda11505c807e0f230275ca474ba088 100644 --- a/channels/emoji.go +++ b/channels/emoji.go @@ -10,7 +10,6 @@ package channels import ( "bufio" "bytes" - "github.com/pkg/errors" jww "github.com/spf13/jwalterweatherman" "regexp" ) @@ -18,9 +17,6 @@ import ( //based on emojis found at https://unicode.org/emoji/charts/full-emoji-list.html const findEmoji = `[\xA9\xAE\x{2000}-\x{3300}\x{1F000}-\x{1FBFF}]` -var InvalidReaction = errors.New( - "The reaction is not valid, it must be a single emoji") - var compiledRegex *regexp.Regexp // compile the regular expression in an init so it is only diff --git a/channels/errors.go b/channels/errors.go index dd941f86a5d4e3d2d0637567535c2295d17a5e61..319f065966a899f5a64c05b41eda84caa887fd02 100644 --- a/channels/errors.go +++ b/channels/errors.go @@ -20,4 +20,6 @@ var ( "the passed private key does not match the channel") MessageTypeAlreadyRegistered = errors.New("the given message type has " + "already been registered") + InvalidReaction = errors.New( + "The reaction is not valid, it must be a single emoji") )