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.


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

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.


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

def emoji
  @emoji
end

#old_emojiEmoji? (readonly)

Returns the emoji data before the event.

Returns:

  • (Emoji, nil)

    the emoji data before the event.


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

def old_emoji
  @old_emoji
end

#serverServer (readonly)

Returns the server in question.

Returns:

  • (Server)

    the server in question.


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

def server
  @server
end