summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bridge/discord/handlers.go2
-rw-r--r--bridge/discord/handlers_test.go10
2 files changed, 6 insertions, 6 deletions
diff --git a/bridge/discord/handlers.go b/bridge/discord/handlers.go
index 79697266..c209da18 100644
--- a/bridge/discord/handlers.go
+++ b/bridge/discord/handlers.go
@@ -217,7 +217,7 @@ func handleEmbed(embed *discordgo.MessageEmbed) string {
i++
if i == 1 {
- result += "embed: " + e
+ result += " embed: " + e
continue
}
diff --git a/bridge/discord/handlers_test.go b/bridge/discord/handlers_test.go
index af821ad0..a809dadd 100644
--- a/bridge/discord/handlers_test.go
+++ b/bridge/discord/handlers_test.go
@@ -20,14 +20,14 @@ func TestHandleEmbed(t *testing.T) {
embed: &discordgo.MessageEmbed{
Title: "blah",
},
- result: "embed: blah\n",
+ result: " embed: blah\n",
},
"two": {
embed: &discordgo.MessageEmbed{
Title: "blah",
Description: "blah2",
},
- result: "embed: blah - blah2\n",
+ result: " embed: blah - blah2\n",
},
"three": {
embed: &discordgo.MessageEmbed{
@@ -35,20 +35,20 @@ func TestHandleEmbed(t *testing.T) {
Description: "blah2",
URL: "blah3",
},
- result: "embed: blah - blah2 - blah3\n",
+ result: " embed: blah - blah2 - blah3\n",
},
"twob": {
embed: &discordgo.MessageEmbed{
Description: "blah2",
URL: "blah3",
},
- result: "embed: blah2 - blah3\n",
+ result: " embed: blah2 - blah3\n",
},
"oneb": {
embed: &discordgo.MessageEmbed{
URL: "blah3",
},
- result: "embed: blah3\n",
+ result: " embed: blah3\n",
},
}