fixed sticky message ignoring bot messages

This commit is contained in:
2024-02-22 14:05:05 +01:00
parent 0fe3f20b5d
commit 1796d59d38
2 changed files with 9 additions and 5 deletions

View File

@@ -75,8 +75,10 @@ var sticky_command Command = Command{
ModalSubmit: func(s *discordgo.Session, i *discordgo.InteractionCreate) {
text := i.ModalSubmitData().Components[0].(*discordgo.ActionsRow).Components[0].(*discordgo.TextInput).Value
message, err := s.ChannelMessageSendEmbed(i.ChannelID, &discordgo.MessageEmbed{
Type: discordgo.EmbedTypeArticle,
Title: ":pushpin: Sticky message",
Type: discordgo.EmbedTypeArticle,
Footer: &discordgo.MessageEmbedFooter{
Text: "📌 Sticky message",
},
Color: hexToDecimal(color["primary"]),
Description: text,
})