continued on forms

This commit is contained in:
2024-03-08 19:10:25 +01:00
parent b253845a1d
commit 1ea34f11b6
13 changed files with 127 additions and 106 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) {
respond(s, i.Interaction, "Autopublishing is now disabled on <#"+i.ChannelID+">", true)
respond(i.Interaction, "Autopublishing is now disabled on <#"+i.ChannelID+">", true)
} else {
respond(s, i.Interaction, "Autopublishing is now enabled on <#"+i.ChannelID+">", true)
respond(i.Interaction, "Autopublishing is now enabled on <#"+i.ChannelID+">", true)
}
} else {
respond(s, i.Interaction, "This is not an announcement channel!", true)
respond(i.Interaction, "This is not an announcement channel!", true)
}
},
}