Skip to content

AppliedTags is always empty now? #1396

Closed Answered by eslindsey
eslindsey asked this question in Q&A
Discussion options

You must be logged in to vote

Found out session.GuildThreadsActive does not populate channel.AppliedTags; since this bot was working previously, I guess this is a breaking change. However, session.Channel does still populate AppliedTags.

Therefore as a workaround, I am now using:

threads, _ := session.GuildThreadsActive(...)
for _, channel := range threads {
    channel, _ = session.Channel(channel.ID)
    // ... now channel.AppliedTags is populated at the expense of an extra call per channel
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by eslindsey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant