Sunday, June 2, 2024
 Popular · Latest · Hot · Upcoming
145
rated 0 times [  151] [ 6]  / answers: 1 / hits: 17284  / 7 Years ago, wed, may 24, 2017, 12:00:00

I'm trying to make a warn command for my discord bot but the system I made for non admins to not be able to use it doesn't really work because of the msg.guildmember.haspermission thing. I'm not sure what's going wrong can anyone help me out here?



image


More From » discord

 Answers
3

Use member instead of GuildMember at lines 6 and 7 in the screenshot.



I'd also suggest checking out Discord's official API documentation and the discord.js documentation if you haven't already.


[#57679] Monday, May 22, 2017, 7 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
coby

Total Points: 27
Total Questions: 102
Total Answers: 97

Location: Honduras
Member since Wed, Jul 14, 2021
3 Years ago
;