nevermind robbin was a dick

master
Julius 2020-09-07 20:50:37 +02:00
parent 1ace993319
commit 28195e1d2b
1 changed files with 1 additions and 1 deletions

View File

@ -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)