Class: Discorb::Webhook::Message::Author
- Inherits:
-
DiscordModel
- Object
- DiscordModel
- Discorb::Webhook::Message::Author
- Defined in:
- lib/discorb/webhook.rb
Overview
Represents an author of webhook message.
Instance Attribute Summary collapse
-
#avatar -> Discorb::Asset
readonly
The avatar of the author.
-
#bot -> Boolean
readonly
Whether the author is a bot.
-
#discriminator -> String
readonly
The discriminator of the author.
-
#id -> Discorb::Snowflake
readonly
The ID of the author.
-
#username -> String
(also: #name)
readonly
The name of the author.
Method Summary
Methods inherited from DiscordModel
Instance Attribute Details
#avatar -> Discorb::Asset (readonly)
Returns The avatar of the author.
371 372 373 |
# File 'lib/discorb/webhook.rb', line 371 def avatar @avatar end |
#bot -> Boolean (readonly)
Note:
This will be always true
.
Returns Whether the author is a bot.
364 365 366 |
# File 'lib/discorb/webhook.rb', line 364 def bot @bot end |
#discriminator -> String (readonly)
Returns The discriminator of the author.
373 374 375 |
# File 'lib/discorb/webhook.rb', line 373 def discriminator @discriminator end |
#id -> Discorb::Snowflake (readonly)
Returns The ID of the author.
366 367 368 |
# File 'lib/discorb/webhook.rb', line 366 def id @id end |
#username -> String (readonly) Also known as: name
Returns The name of the author.
368 369 370 |
# File 'lib/discorb/webhook.rb', line 368 def username @username end |