summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/nlopes/slack/websocket_internals.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/nlopes/slack/websocket_internals.go')
-rw-r--r--vendor/github.com/nlopes/slack/websocket_internals.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/vendor/github.com/nlopes/slack/websocket_internals.go b/vendor/github.com/nlopes/slack/websocket_internals.go
index 2a8abe6e..e8374b0d 100644
--- a/vendor/github.com/nlopes/slack/websocket_internals.go
+++ b/vendor/github.com/nlopes/slack/websocket_internals.go
@@ -63,6 +63,13 @@ func (m *MessageTooLongEvent) Error() string {
return fmt.Sprintf("Message too long (max %d characters)", m.MaxLength)
}
+// RateLimitEvent is used when Slack warns that rate-limits are being hit.
+type RateLimitEvent struct{}
+
+func (e *RateLimitEvent) Error() string {
+ return "Messages are being sent too fast."
+}
+
// OutgoingErrorEvent contains information in case there were errors sending messages
type OutgoingErrorEvent struct {
Message OutgoingMessage