Class: Rubycord::AllowedMentions
- Inherits:
-
Object
- Object
- Rubycord::AllowedMentions
- Defined in:
- lib/rubycord/allowed_mentions.rb
Overview
Builder class for allowed_mentions
when sending messages.
Instance Attribute Summary collapse
- #parse ⇒ Array<"users", "roles", "everyone">?
- #roles ⇒ Array<String, Integer>?
- #users ⇒ Array<String, Integer>?
Instance Method Summary collapse
-
#initialize(parse: nil, users: nil, roles: nil) ⇒ AllowedMentions
constructor
A new instance of AllowedMentions.
Constructor Details
#initialize(parse: nil, users: nil, roles: nil) ⇒ AllowedMentions
Returns a new instance of AllowedMentions.
19 20 21 22 23 |
# File 'lib/rubycord/allowed_mentions.rb', line 19 def initialize(parse: nil, users: nil, roles: nil) @parse = parse @users = users @roles = roles end |