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.



130
131
132
133
134
135
# File 'lib/discordrb/events/guilds.rb', line 130

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.



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

def emoji
  @emoji
end

#old_emojiEmoji? (readonly)

Returns the emoji data before the event.

Returns:

  • (Emoji, nil)

    the emoji data before the event.



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

def old_emoji
  @old_emoji
end

#serverServer (readonly)

Returns the server in question.

Returns:

  • (Server)

    the server in question.



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

def server
  @server
end