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.
84 85 86 87 88 |
# File 'lib/discordrb/events/guilds.rb', line 84 def initialize(server, data, bot) @bot = bot @server = server process_emoji(data) end |
Instance Attribute Details
#emoji ⇒ Array<Emoji> (readonly)
Returns array of emojis.
82 83 84 |
# File 'lib/discordrb/events/guilds.rb', line 82 def emoji @emoji end |
#server ⇒ Server (readonly)
Returns the server in question.
79 80 81 |
# File 'lib/discordrb/events/guilds.rb', line 79 def server @server end |