class Discorb::Webhook::FollowerWebhook
Represents a webhook of channel following.
Public Class Methods
new(client, data)
click to toggle source
@!visibility private
Calls superclass method
Discorb::Webhook::new
# File lib/discorb/webhook.rb, line 235 def initialize(client, data) super @source_guild = FollowerWebhook::Guild.new(data[:source_guild]) @source_channel = FollowerWebhook::Channel.new(data[:source_channel]) end
Public Instance Methods
source_channel()
click to toggle source
# File lib/discorb/webhook.rb, line 245 def source_channel @client.channels[@source_channel.id] || @source_channel end
source_guild()
click to toggle source
# File lib/discorb/webhook.rb, line 241 def source_guild @client.guilds[@source_guild.id] || @source_guild end