Skip to content

Commit

Permalink
remove the extra spacing around mentions (#724)
Browse files Browse the repository at this point in the history
  • Loading branch information
Satty9361 authored Jun 1, 2020
1 parent f23e1b4 commit 0e5bf60
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions common/templates/context_funcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -345,12 +345,12 @@ func (c *Context) tmplEditMessage(filterSpecialMentions bool) func(channel inter

func (c *Context) tmplMentionEveryone() string {
c.CurrentFrame.MentionEveryone = true
return " @everyone "
return "@everyone"
}

func (c *Context) tmplMentionHere() string {
c.CurrentFrame.MentionHere = true
return " @here "
return "@here"
}

func (c *Context) tmplMentionRoleID(roleID interface{}) string {
Expand Down Expand Up @@ -380,7 +380,7 @@ func (c *Context) tmplMentionRoleID(roleID interface{}) string {
}

c.CurrentFrame.MentionRoles = append(c.CurrentFrame.MentionRoles, role)
return " <@&" + discordgo.StrID(role) + "> "
return "<@&" + discordgo.StrID(role) + ">"
}

func (c *Context) tmplMentionRoleName(role string) string {
Expand All @@ -403,7 +403,7 @@ func (c *Context) tmplMentionRoleName(role string) string {
return "(role not found)"
}

return " <@&" + discordgo.StrID(found.ID) + "> "
return "<@&" + discordgo.StrID(found.ID) + ">"
}

func (c *Context) tmplHasRoleID(roleID interface{}) bool {
Expand Down

0 comments on commit 0e5bf60

Please sign in to comment.