Method: Discordrb::API::Webhook.webhook

Defined in:
lib/discordrb/api/webhook.rb

.webhook(token, webhook_id) ⇒ Object



9
10
11
12
13
14
15
16
17
# File 'lib/discordrb/api/webhook.rb', line 9

def webhook(token, webhook_id)
  Discordrb::API.request(
    :webhooks_wid,
    nil,
    :get,
    "#{Discordrb::API.api_base}/webhooks/#{webhook_id}",
    Authorization: token
  )
end