package
0.0.0-20240404121558-5fb48e90bf53
Repository: https://github.com/gobridge/gopherbot.git
Documentation: pkg.go.dev
# Functions
Join takes a slice of mentions, and joins them using the sep.
Parse takes the message text, and the channel ID where the message was sent, and parses the mentions in the message.
ParseAndSplice calls Parse(), and uses the start/end index of each mention to remove it from the message and return the resulting string.
# Constants
TypeChannel is for @channel mentions.
TypeChannelRef is a reference to another channel in a message, like if a user were to type "join #general".
TypeEveryone is for @everyone metnions.
TypeGroup represents a workspace group mention.
TypeHere is for @here mentions.
TypeUser represents a user mention.
# Type aliases
Type is a faux-enum for describing whether it was a user or group mention.