delete helpers.go from the message package

This commit is contained in:
Dawid Wysokiński 2021-07-18 10:17:45 +02:00
parent 4b777e24af
commit f11d4b061e
3 changed files with 4 additions and 18 deletions

View File

@ -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().

View File

@ -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()))
}

View File

@ -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,
}
}