added more tool functions

This commit is contained in:
2024-03-05 21:31:44 +01:00
parent 34b0f95464
commit 0fd339dad3
10 changed files with 50 additions and 70 deletions

View File

@@ -53,9 +53,9 @@ var cmd_sticky Command = Command{
if hasSticky(i.GuildID, i.ChannelID) {
s.ChannelMessageDelete(i.ChannelID, getStickyMessageID(i.GuildID, i.ChannelID))
removeSticky(i.GuildID, i.ChannelID)
respondEphemeral(s, i.Interaction, "The sticky message was removed from this channel!")
respond(s, i.Interaction, "The sticky message was removed from this channel!", true)
} else {
respondEphemeral(s, i.Interaction, "This channel has no sticky message!")
respond(s, i.Interaction, "This channel has no sticky message!", true)
}
}
},
@@ -74,9 +74,9 @@ var cmd_sticky Command = Command{
log.Println(err)
}
if addSticky(i.GuildID, i.ChannelID, text, message.ID) {
respondEphemeral(s, i.Interaction, "Sticky message in this channel was updated!")
respond(s, i.Interaction, "Sticky message in this channel was updated!", true)
} else {
respondEphemeral(s, i.Interaction, "Message sticked to the channel!")
respond(s, i.Interaction, "Message sticked to the channel!", true)
}
},
}