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.



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

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.



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

def emoji
  @emoji
end

#serverServer (readonly)

Returns the server in question.

Returns:

  • (Server)

    the server in question.



96
97
98
# File 'lib/discordrb/events/guilds.rb', line 96

def server
  @server
end