Class: Discordrb::Events::ServerEmojiCDEvent
- Inherits:
-
ServerEvent
- Object
- Event
- ServerEvent
- Discordrb::Events::ServerEmojiCDEvent
- Defined in:
- lib/discordrb/events/guilds.rb
Overview
Generic event helper for when an emoji is either created or deleted
Direct Known Subclasses
Instance Attribute Summary collapse
-
#emoji ⇒ Emoji
readonly
The emoji data.
-
#server ⇒ Server
readonly
The server in question.
Attributes inherited from Event
Instance Method Summary collapse
-
#initialize(server, emoji, bot) ⇒ ServerEmojiCDEvent
constructor
A new instance of ServerEmojiCDEvent.
Methods inherited from ServerEvent
Constructor Details
#initialize(server, emoji, bot) ⇒ ServerEmojiCDEvent
Returns a new instance of ServerEmojiCDEvent.
106 107 108 109 110 |
# File 'lib/discordrb/events/guilds.rb', line 106 def initialize(server, emoji, bot) @bot = bot @emoji = emoji @server = server end |
Instance Attribute Details
#emoji ⇒ Emoji (readonly)
Returns the emoji data.
104 105 106 |
# File 'lib/discordrb/events/guilds.rb', line 104 def emoji @emoji end |
#server ⇒ Server (readonly)
Returns the server in question.
101 102 103 |
# File 'lib/discordrb/events/guilds.rb', line 101 def server @server end |