Try to detect member

Hello their! I try to detect if user is in guild with this code:
const self = (message.guild as Guild).me as GuildMember;
const self = (message.guild as Guild).me as GuildMember;
But it return this error Property 'me' does not exist on type 'Guild' Could you help me ?
3 Replies
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
d.js docs
d.js docs3y ago
property GuildMemberManager#me The client user as a GuildMember of this guild
Ugolin Ollé
Ugolin OlléOP3y ago
Thx a lot !
Want results from more Discord servers?
Add your server