#(prefix) timeout command not working

13 messages · Page 1 of 1 (latest)

random field
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

slender frigate
#

message is not what you think it is then (it‘s not a Message instance)… I was wrong here, see below 👇

pastel spindleBOT
#

The order of function parameters must match between definition and function call.

function execute(client, message, args) { ... };
execute(message, client, args);

• mismatch! you pass a Message where the client is expected
• mismatch! you pass the Client where a Message is expected

slender frigate
#

No wait, it is… but there is only one member in a message. So message.members

weak axle
#

oh thank you

knotty condor
#

should be .permissions I think

weak axle
#

it was .member but now it goes to the .has?

knotty condor
slender frigate
knotty condor
#

yeah I noticed after

weak axle
#

You're right. Thank you very much. It was .permissions