Class: Discordrb::Events::ServerEmojiUpdateEvent

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

Overview

Emoji is updated

Instance Attribute Summary collapse

Attributes inherited from Event

#bot

Instance Method Summary collapse

Methods inherited from ServerEvent

#init_server

Constructor Details

#initialize(server, old_emoji, emoji, bot) ⇒ ServerEmojiUpdateEvent

Returns a new instance of ServerEmojiUpdateEvent.



125
126
127
128
129
130
# File 'lib/discordrb/events/guilds.rb', line 125

def initialize(server, old_emoji, emoji, bot)
  @bot = bot
  @old_emoji = old_emoji
  @emoji = emoji
  @server = server
end

Instance Attribute Details

#emojiEmoji? (readonly)

Returns the updated emoji data.

Returns:

  • (Emoji, nil)

    the updated emoji data.



123
124
125
# File 'lib/discordrb/events/guilds.rb', line 123

def emoji
  @emoji
end

#old_emojiEmoji? (readonly)

Returns the emoji data before the event.

Returns:

  • (Emoji, nil)

    the emoji data before the event.



120
121
122
# File 'lib/discordrb/events/guilds.rb', line 120

def old_emoji
  @old_emoji
end

#serverServer (readonly)

Returns the server in question.

Returns:

  • (Server)

    the server in question.



117
118
119
# File 'lib/discordrb/events/guilds.rb', line 117

def server
  @server
end