Method: Discordrb::API::Webhook.token_webhook

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

.token_webhook(webhook_token, webhook_id) ⇒ Object



21
22
23
24
25
26
27
28
# File 'lib/discordrb/api/webhook.rb', line 21

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