pyraxo / sylphy

👑 the better discord bot framework
GNU Affero General Public License v3.0
95 stars 24 forks source link

Args Member return to a 5xx. #16

Closed p4rkrs closed 7 years ago

p4rkrs commented 7 years ago

Hello,

The USAGE with type member return to 500 error

image

And when I quote the args.member.id that return to me to an 4xx Error. That's my full code: https://github.com/itskiru/sagiri-bot/blob/master/src/commands/mod/kick.js

p4rkrs commented 7 years ago

Oh I forgot, that's the console.log of args.member: image

But the console.log of args.member.id return to undefined.

p4rkrs commented 7 years ago

Anyways, the type 'member' keep undefined when we use it.

pyraxo commented 7 years ago

args will always return an array, you should be doing args.member[0].id