izy521 / discord.io

A small, single-file library for creating DiscordApp clients from Node.js or the browser
https://discord.gg/0MvHMfHcTKVVmIGP
MIT License
535 stars 154 forks source link

Grabbing multiple arguements and storing them in a variable? #254

Closed AlekEagle closed 6 years ago

AlekEagle commented 6 years ago

I'm still kinda new to discord.io so I have no idea on how to grab another arguement from a command that i executed, ex: ?clearmessages @user 10 i want to grab the userID from the ping and store it in a variable ex: ID and then grab the number of messages to clear and store it in another variable ex: num, how would I be able to do that?

AlekEagle commented 6 years ago

i got help from the discord server