Class: Discordrb::Events::ServerEmojiUpdateEvent
- Inherits:
-
ServerEvent
- Object
- Event
- ServerEvent
- Discordrb::Events::ServerEmojiUpdateEvent
- Defined in:
- lib/discordrb/events/guilds.rb
Overview
Emoji is updated
Instance Attribute Summary collapse
-
#emoji ⇒ Emoji?
readonly
The updated emoji data.
-
#old_emoji ⇒ Emoji?
readonly
The emoji data before the event.
-
#server ⇒ Server
readonly
The server in question.
Attributes inherited from Event
Instance Method Summary collapse
-
#initialize(server, old_emoji, emoji, bot) ⇒ ServerEmojiUpdateEvent
constructor
A new instance of ServerEmojiUpdateEvent.
Methods inherited from ServerEvent
Constructor Details
#initialize(server, old_emoji, emoji, bot) ⇒ ServerEmojiUpdateEvent
Returns a new instance of ServerEmojiUpdateEvent.
125 126 127 128 129 130 |
# File 'lib/discordrb/events/guilds.rb', line 125 def initialize(server, old_emoji, emoji, bot) @bot = bot @old_emoji = old_emoji @emoji = emoji @server = server end |
Instance Attribute Details
#emoji ⇒ Emoji? (readonly)
Returns the updated emoji data.
123 124 125 |
# File 'lib/discordrb/events/guilds.rb', line 123 def emoji @emoji end |
#old_emoji ⇒ Emoji? (readonly)
Returns the emoji data before the event.
120 121 122 |
# File 'lib/discordrb/events/guilds.rb', line 120 def old_emoji @old_emoji end |
#server ⇒ Server (readonly)
Returns the server in question.
117 118 119 |
# File 'lib/discordrb/events/guilds.rb', line 117 def server @server end |