Method: Discordrb::API::Webhook.token_webhook
- Defined in:
- lib/discordrb/api/webhook.rb
.token_webhook(webhook_token, webhook_id) ⇒ Object
Get a webhook via webhook token https://discordapp.com/developers/docs/resources/webhook#get-webhook-with-token
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 |