Documentation ¶
Index ¶
- Constants
- func ParseID(id string) (uint32, error)
- type Author
- type Header
- type Message
- func Echo(sendable cchat.SendableMessage, id uint32, author Author) Message
- func NewEmpty(id uint32, author Author) Message
- func NewRandom(id uint32, author Author) Message
- func NewRandomFromMessage(old Message) Message
- func Random(id uint32) Message
- func RandomWithAuthor(id uint32, author Author) Message
Constants ¶
View Source
const AvatarURL = "" +
"https://gist.github.com/diamondburned/" +
"945744c2b5ce0aa0581c9267a4e5cf24/raw/" +
"598069da673093aaca4cd4aa0ede1a0e324e9a3a/" +
"astolfo_selfie.png"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Author ¶
type Author struct {
// contains filtered or unexported fields
}
func RandomAuthor ¶
func RandomAuthor() Author
type Message ¶
type Message struct { Header // contains filtered or unexported fields }
func NewRandomFromMessage ¶
func RandomWithAuthor ¶
func (Message) AuthorName ¶
AuthorName returns the message author's username in string.
func (Message) RealAuthor ¶
func (*Message) SetContent ¶
Click to show internal directories.
Click to hide internal directories.