-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parameters? #742
Comments
What do you mean by parameters, something like Also just going to repost this, please join https://discord.gg/discord-api for further support since it's far easier to chat about it in our channel rather than making a bunch of issues. |
Sure #some params
bot.command :command do | event, arg1, arg2, arg3 | # !command a b c -> arg1, arg2, arg3 = 'a', 'b', 'c'
#code
end
#all params
bot.command :command do | event, *args | # !command a a a -> args = ['a', 'a', 'a']
#code
end |
Please note: The source of discordrb has been moved to the shardlab org. The gem is also being updated using shardlab/discordrb as the new source. |
Is it possible to include parameters in commands?
The text was updated successfully, but these errors were encountered: