Skip to content

Commit

Permalink
add language to jddodle exec embed [fix #61]
Browse files Browse the repository at this point in the history
  • Loading branch information
zekroTJA committed Jun 22, 2019
1 parent a533270 commit 51f94d4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions internal/listeners/jdoodle.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,13 @@ func (l *ListenerJdoodle) Handler(s *discordgo.Session, e *discordgo.MessageCrea
Inline: true,
},
},
Footer: &discordgo.MessageEmbedFooter{
Text: strings.ToUpper(lang),
},
}

if executor != nil {
emb.Footer = &discordgo.MessageEmbedFooter{
Text: "Executed by " + executor.User.String(),
}
emb.Footer.Text += " | Executed by " + executor.User.String()
}

s.ChannelMessageEditEmbed(resMsg.ChannelID, resMsg.ID, emb)
Expand Down

0 comments on commit 51f94d4

Please sign in to comment.