Class: Discordrb::AllowedMentions
- Inherits:
-
Object
- Object
- Discordrb::AllowedMentions
- Defined in:
- lib/discordrb/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.
21 22 23 24 25 |
# File 'lib/discordrb/allowed_mentions.rb', line 21 def initialize(parse: nil, users: nil, roles: nil) @parse = parse @users = users @roles = roles end |