Skip to content

add Role to Member in TypeScript is not known #8413

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

You must be logged in to vote

Typeguard the interaction using interaction.inCachedGuild(), otherwise interaction.member could be an APIGuildMember, in which case .roles would be an array of snowflakes

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Paradiesvogel7
Comment options

@manuelvleeuwen
Comment options

@Paradiesvogel7
Comment options

Answer selected by kyranet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #8412 on August 01, 2022 15:58.