Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LastEvent ¶
type LastEvent struct { At primitive.DateTime `bson:"at"` Error *LastEventError `bson:"error"` MessageID *string `bson:"message_id"` NotifiedStreamOffline bool `bson:"notified_stream_offline"` RegexMatched bool `bson:"regex_matched"` StreamID string `bson:"stream_id"` }
LastEvent ...
func (*LastEvent) MessageIDSnowflake ¶
MessageIDSnowflake converts a notification last event message ID to a disgord.Snowflake.
type LastEventError ¶ added in v1.0.2
type LastEventError struct { Code int `bson:"code"` Message string `bson:"message"` Status int `bson:"status"` }
LastEventError ...
type Notification ¶
type Notification struct { ID primitive.Binary `bson:"_id"` ChannelID string `bson:"channel"` CreatedAt primitive.DateTime `bson:"created_at"` CreatedBy *string `bson:"created_by"` EmbedColor *string `bson:"embed_color"` EmbedFlags uint `bson:"embed_flags"` ImageURL *string `bson:"image_url"` Guild string `bson:"guild"` LastEvent *LastEvent `bson:"last_event"` Message string `bson:"message"` Regex *[]Regex `bson:"regex"` StreamEndAction *uint `bson:"stream_end_action"` StreamEndMessage *string `bson:"stream_end_message"` StreamerID string `bson:"streamer_id"` StreamerName string `bson:"streamer_name"` UpdatedAt primitive.DateTime `bson:"updated_at"` }
Notification represents a single stream notification
func (*Notification) ChannelIDSnowflake ¶
func (n *Notification) ChannelIDSnowflake() disgord.Snowflake
ChannelIDSnowflake converts a notification's text channel ID to a disgord.Snowflake.
func (*Notification) IDString ¶
func (n *Notification) IDString() string
IDString converts a notification ID to a base64 string.
type Regex ¶ added in v1.0.2
type Regex struct { Mode int `bson:"mode"` Patterns []RegexPattern `bson:"patterns"` }
Regex customization options for a notification.
type RegexPattern ¶ added in v1.0.2
type RegexPattern struct { Field string `bson:"field"` MatchType bool `bson:"match_type"` Pattern string `bson:"pattern"` }
RegexPattern ...
Click to show internal directories.
Click to hide internal directories.