Skip to content

Commit

Permalink
add incident message types
Browse files Browse the repository at this point in the history
  • Loading branch information
mlnrDev committed Dec 3, 2023
1 parent cd85709 commit 51e4337
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion discord/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ const (
_
MessageTypeStageTopic
MessageTypeGuildApplicationPremiumSubscription
_
_
_
MessageTypeGuildIncidentAlertModeEnabled
MessageTypeGuildIncidentAlertModeDisabled
MessageTypeGuildIncidentReportRaid
MessageTypeGuildIncidentReportFalseAlarm
)

func (t MessageType) System() bool {
Expand All @@ -65,7 +72,9 @@ func (t MessageType) Deleteable() bool {
case MessageTypeRecipientAdd, MessageTypeRecipientRemove, MessageTypeCall,
MessageTypeChannelNameChange, MessageTypeChannelIconChange, MessageTypeGuildDiscoveryDisqualified,
MessageTypeGuildDiscoveryRequalified, MessageTypeGuildDiscoveryGracePeriodInitialWarning,
MessageTypeGuildDiscoveryGracePeriodFinalWarning, MessageTypeThreadStarterMessage:
MessageTypeGuildDiscoveryGracePeriodFinalWarning, MessageTypeThreadStarterMessage,
MessageTypeGuildIncidentAlertModeEnabled, MessageTypeGuildIncidentAlertModeDisabled,
MessageTypeGuildIncidentReportRaid, MessageTypeGuildIncidentReportFalseAlarm:
return false

default:
Expand Down

0 comments on commit 51e4337

Please sign in to comment.