Run formatter
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
This commit is contained in:
parent
f856e1619f
commit
b16ef37e72
|
@ -115,7 +115,7 @@ func onChannelDelete(s *discordgo.Session, cd *discordgo.ChannelDelete) {
|
|||
continue
|
||||
}
|
||||
|
||||
// If the bot deleted the channel, we don't care about this event
|
||||
// If the bot deleted the channel, we don't care about this event
|
||||
if entry.UserID == s.State.User.ID {
|
||||
return
|
||||
}
|
||||
|
@ -154,7 +154,7 @@ func handleBanOrKick(s *discordgo.Session, gmr *discordgo.GuildMemberRemove) err
|
|||
}
|
||||
|
||||
for _, entry := range auditLog.AuditLogEntries {
|
||||
// If there's no action type or the user isn't the one this
|
||||
// If there's no action type or the user isn't the one this
|
||||
// event is for, skip it.
|
||||
if entry.ActionType == nil || entry.TargetID != gmr.User.ID {
|
||||
continue
|
||||
|
|
|
@ -39,7 +39,7 @@ func Init(s *discordgo.Session) error {
|
|||
},
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ import (
|
|||
|
||||
var neopronounValidationRegex = regexp.MustCompile(`^[a-z]+(/[a-z]+)+$`)
|
||||
|
||||
// neopronounCmd assigns a neopronoun role to the user that ran it.
|
||||
// neopronounCmd assigns a neopronoun role to the user that ran it.
|
||||
func neopronounCmd(s *discordgo.Session, i *discordgo.InteractionCreate) error {
|
||||
data := i.ApplicationCommandData()
|
||||
name := data.Options[0].StringValue()
|
||||
|
|
Loading…
Reference in New Issue