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.


105
106
107
108
109
# File 'lib/discordrb/events/guilds.rb', line 105

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.


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

def emoji
  @emoji
end

#serverServer (readonly)

Returns the server in question.

Returns:

  • (Server)

    the server in question.


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

def server
  @server
end