diff --git a/cron/handler.go b/cron/handler.go index 73c5085..d5e1589 100644 --- a/cron/handler.go +++ b/cron/handler.go @@ -225,7 +225,7 @@ func (h *handler) checkEnnoblements() { title := localizer.MustLocalize(&i18n.LocalizeConfig{ MessageID: message.CronLostVillagesTitle, }) - conqueredVillagesBldr.SetName(title) + lostVillagesBldr.SetName(title) go h.discord.SendEmbed(g.LostVillagesChannelID, discord. NewEmbed(). diff --git a/discord/observations.go b/discord/observations.go index 605519d..0906eec 100644 --- a/discord/observations.go +++ b/discord/observations.go @@ -810,12 +810,10 @@ func (hndlr *hndlrObservations) execute(ctx *commandCtx, m *discordgo.MessageCre BuildLink(tag, tribeURL))) } } - title := ctx.localizer.MustLocalize(&i18n.LocalizeConfig{ - MessageID: message.ObservationsTitle, - }) - bldr.SetName(title) hndlr.SendEmbed(m.ChannelID, NewEmbed(). - SetTitle(title). + SetTitle(ctx.localizer.MustLocalize(&i18n.LocalizeConfig{ + MessageID: message.ObservationsTitle, + })). SetFields(bldr.ToMessageEmbedFields())) } diff --git a/message/helpers.go b/message/helpers.go deleted file mode 100644 index 250a02b..0000000 --- a/message/helpers.go +++ /dev/null @@ -1,12 +0,0 @@ -package message - -import "github.com/nicksnyder/go-i18n/v2/i18n" - -func FallbackMsg(id string, msg string) *i18n.Message { - return &i18n.Message{ - ID: id, - One: msg, - Many: msg, - Other: msg, - } -}