Class: Discordrb::Events::ServerEmojiCDEvent

Inherits:
ServerEvent show all
Defined in:
lib/discordrb/events/guilds.rb

Overview

Generic event helper for when an emoji is either created or deleted

Instance Attribute Summary collapse

Attributes inherited from Event

#bot

Instance Method Summary collapse

Methods inherited from ServerEvent

#init_server

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

#emojiEmoji (readonly)

Returns the emoji data.

Returns:

  • (Emoji)

    the emoji data.



104
105
106
# File 'lib/discordrb/events/guilds.rb', line 104

def emoji
  @emoji
end

#serverServer (readonly)

Returns the server in question.

Returns:

  • (Server)

    the server in question.



101
102
103
# File 'lib/discordrb/events/guilds.rb', line 101

def server
  @server
end