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

Function currentTargetIDs

internal/discord/runtime.go:1590–1606  ·  view source on GitHub ↗
(channel *discordgo.Channel)

Source from the content-addressed store, hash-verified

1588}
1589
1590func currentTargetIDs(channel *discordgo.Channel) (*int64, *int64) {
1591 if channel == nil {
1592 return nil, nil
1593 }
1594 channelID, channelErr := strconv.ParseInt(channel.ID, 10, 64)
1595 if channelErr != nil {
1596 return nil, nil
1597 }
1598 if isThreadChannel(channel.Type) {
1599 parentID, err := strconv.ParseInt(channel.ParentID, 10, 64)
1600 if err != nil {
1601 return nil, nil
1602 }
1603 return &parentID, &channelID
1604 }
1605 return &channelID, nil
1606}

Callers 4

handleSubscribeMethod · 0.85
handleSetChannelMethod · 0.85
handleSetThreadMethod · 0.85
handleCheckMethod · 0.85

Calls 1

isThreadChannelFunction · 0.85

Tested by

no test coverage detected