class Discordrb::Events::WebhookUpdateEvent

Event raised when a webhook is updated

Attributes

channel[R]

@return [Channel] the channel the webhook is associated to

server[R]

@return [Server] the server where the webhook updated

Public Class Methods

new(data, bot) click to toggle source
# File lib/discordrb/events/webhooks.rb, line 15
def initialize(data, bot)
  @bot = bot

  @server = bot.server(data['guild_id'].to_i)
  @channel = bot.channel(data['channel_id'].to_i)
end