continued on forms
This commit is contained in:
@@ -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)
|
||||
}
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user