Class: Discordrb::Events::ServerEmojiChangeEvent

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

Overview

Emoji is created/deleted/updated

Instance Attribute Summary collapse

Attributes inherited from Event

#bot

Instance Method Summary collapse

Methods inherited from ServerEvent

#init_server

Constructor Details

#initialize(server, data, bot) ⇒ ServerEmojiChangeEvent

Returns a new instance of ServerEmojiChangeEvent.


83
84
85
86
87
# File 'lib/discordrb/events/guilds.rb', line 83

def initialize(server, data, bot)
  @bot = bot
  @server = server
  process_emoji(data)
end

Instance Attribute Details

#emojiArray<Emoji> (readonly)

Returns array of emojis.

Returns:

  • (Array<Emoji>)

    array of emojis.


81
82
83
# File 'lib/discordrb/events/guilds.rb', line 81

def emoji
  @emoji
end

#serverServer (readonly)

Returns the server in question.

Returns:

  • (Server)

    the server in question.


78
79
80
# File 'lib/discordrb/events/guilds.rb', line 78

def server
  @server
end