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.



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

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.



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

def emoji
  @emoji
end

#serverServer (readonly)

Returns the server in question.

Returns:

  • (Server)

    the server in question.



74
75
76
# File 'lib/discordrb/events/guilds.rb', line 74

def server
  @server
end