Skip to content

Commit

Permalink
fix: attachment url on the same line as the message content
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTipo01 committed Nov 22, 2021
1 parent 30eacb4 commit 6c6ea14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ func loadScheduler(s *discordgo.Session) {

// If there's an attachments, add it
if len(message.Attachments) > 0 {
message.Content = message.Attachments[0].URL + message.Content
message.Content = message.Attachments[0].URL + "\n" + message.Content
}

_, err = s.ChannelMessageSend(channelToID, "Quote of the week:```\n"+message.Content+"```Submitted by "+message.Author.Username)
Expand Down

0 comments on commit 6c6ea14

Please sign in to comment.