MCPcopy Create free account
hub / github.com/MMadmer/EpicAssetsNotifyBot / formatTargetLabel

Method formatTargetLabel

internal/discord/runtime.go:1131–1139  ·  view source on GitHub ↗
(cfg model.GuildConfig, localizer *i18n.Localizer)

Source from the content-addressed store, hash-verified

1129}
1130
1131func (r *Runtime) formatTargetLabel(cfg model.GuildConfig, localizer *i18n.Localizer) string {
1132 if cfg.ThreadID != nil {
1133 return localizer.T("server.target.thread", map[string]any{"thread_id": *cfg.ThreadID})
1134 }
1135 if cfg.ChannelID != nil {
1136 return localizer.T("server.target.channel", map[string]any{"channel_id": *cfg.ChannelID})
1137 }
1138 return localizer.T("server.target.none", nil)
1139}
1140
1141func (r *Runtime) formatRoleLabel(cfg model.GuildConfig, localizer *i18n.Localizer) string {
1142 if cfg.MentionRoleID == nil {

Callers 6

handleSubscribeMethod · 0.95
handleEnableMethod · 0.95
handleSetChannelMethod · 0.95
handleSetThreadMethod · 0.95
handleClearThreadMethod · 0.95
handleCheckMethod · 0.95

Calls 1

TMethod · 0.80

Tested by

no test coverage detected