diff --git a/modules/faq/faqBase.go b/modules/faq/faqBase.go index 41f014d..bd67bc9 100644 --- a/modules/faq/faqBase.go +++ b/modules/faq/faqBase.go @@ -4,6 +4,7 @@ import ( "database/sql" "errors" "fmt" + "strings" "time" "github.com/bwmarrin/discordgo" @@ -47,6 +48,7 @@ func (faq faqBase) getAllFAQs() (map[string]string, error) { if err := row.Scan(&question, &answer); err != nil { return lastFAQs[faq.Interaction.GuildID], fmt.Errorf("scanning row: %w", err) } + answer = strings.ReplaceAll(answer, "\\n", "\n") lastFAQs[faq.Interaction.GuildID][question] = answer }