Class: Discordrb::Events::ServerEmojiChangeEvent
- Inherits:
-
ServerEvent
- Object
- Event
- ServerEvent
- Discordrb::Events::ServerEmojiChangeEvent
- Defined in:
- lib/discordrb/events/guilds.rb
Overview
Emoji is created/deleted/updated
Instance Attribute Summary collapse
-
#emoji ⇒ Array<Emoji>
readonly
Array of emojis.
-
#server ⇒ Server
readonly
The server in question.
Attributes inherited from Event
Instance Method Summary collapse
-
#initialize(server, data, bot) ⇒ ServerEmojiChangeEvent
constructor
A new instance of ServerEmojiChangeEvent.
Methods inherited from ServerEvent
Constructor Details
#initialize(server, data, bot) ⇒ ServerEmojiChangeEvent
Returns a new instance of ServerEmojiChangeEvent.
79 80 81 82 83 |
# File 'lib/discordrb/events/guilds.rb', line 79 def initialize(server, data, bot) @bot = bot @server = server process_emoji(data) end |
Instance Attribute Details
#emoji ⇒ Array<Emoji> (readonly)
Returns array of emojis.
77 78 79 |
# File 'lib/discordrb/events/guilds.rb', line 77 def emoji @emoji end |
#server ⇒ Server (readonly)
Returns the server in question.
74 75 76 |
# File 'lib/discordrb/events/guilds.rb', line 74 def server @server end |