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.



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

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.



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

def emoji
  @emoji
end

#serverServer (readonly)

Returns the server in question.

Returns:

  • (Server)

    the server in question.



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

def server
  @server
end