nevermind robbin was a dick
This commit is contained in:
parent
1ace993319
commit
28195e1d2b
2
main.go
2
main.go
|
@ -64,7 +64,7 @@ func messageReac(s *discordgo.Session, event *discordgo.MessageReaction) {
|
|||
for _, reaction := range msg.Reactions {
|
||||
if reaction.Emoji.Name == "📌" {
|
||||
var msgErr error
|
||||
if reaction.Count >= 5 && !msg.Pinned {
|
||||
if reaction.Count >= 5 {
|
||||
msgErr = s.ChannelMessagePin(event.ChannelID, event.MessageID)
|
||||
} else if reaction.Count <= 3 {
|
||||
msgErr = s.ChannelMessageUnpin(event.ChannelID, event.MessageID)
|
||||
|
|
Loading…
Reference in a new issue