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

@@ -11,12 +11,12 @@ var cmd_autopublish Command = Command{
channel, _ := s.State.Channel(i.ChannelID)
if channel.Type == discordgo.ChannelTypeGuildNews {
if toggleAutoPublish(i.GuildID, i.ChannelID) {
respondEphemeral(s, i.Interaction, "Autopublishing is now disabled on <#"+i.ChannelID+">")
respond(s, i.Interaction, "Autopublishing is now disabled on <#"+i.ChannelID+">", true)
} else {
respondEphemeral(s, i.Interaction, "Autopublishing is now enabled on <#"+i.ChannelID+">")
respond(s, i.Interaction, "Autopublishing is now enabled on <#"+i.ChannelID+">", true)
}
} else {
respondEphemeral(s, i.Interaction, "This is not an announcement channel!")
respond(s, i.Interaction, "This is not an announcement channel!", true)
}
},
}