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.
130 131 132 133 134 135 |
# File 'lib/discordrb/events/guilds.rb', line 130 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.
128 129 130 |
# File 'lib/discordrb/events/guilds.rb', line 128 def emoji @emoji end |
#old_emoji ⇒ Emoji? (readonly)
Returns the emoji data before the event.
125 126 127 |
# File 'lib/discordrb/events/guilds.rb', line 125 def old_emoji @old_emoji end |
#server ⇒ Server (readonly)
Returns the server in question.
122 123 124 |
# File 'lib/discordrb/events/guilds.rb', line 122 def server @server end |