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

Function derefString

internal/discord/runtime.go:1577–1582  ·  view source on GitHub ↗
(value *string, fallback string)

Source from the content-addressed store, hash-verified

1575}
1576
1577func derefString(value *string, fallback string) string {
1578 if value == nil || strings.TrimSpace(*value) == "" {
1579 return fallback
1580 }
1581 return *value
1582}
1583
1584func isThreadChannel(channelType discordgo.ChannelType) bool {
1585 return channelType == discordgo.ChannelTypeGuildPublicThread ||

Callers 3

buildAttachmentsMethod · 0.85
composeMessageMethod · 0.85
attachmentSignatureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected