Method: Discordrb::API::Webhook.token_delete_webhook

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

.token_delete_webhook(webhook_token, webhook_id, reason = nil) ⇒ Object



74
75
76
77
78
79
80
81
82
# File 'lib/discordrb/api/webhook.rb', line 74

def token_delete_webhook(webhook_token, webhook_id, reason = nil)
  Discordrb::API.request(
    :webhooks_wid,
    webhook_id,
    :delete,
    "#{Discordrb::API.api_base}/webhooks/#{webhook_id}/#{webhook_token}",
    'X-Audit-Log-Reason': reason
  )
end