Method: Discordrb::API::Webhook.delete_webhook
- Defined in:
- lib/discordrb/api/webhook.rb
.delete_webhook(token, webhook_id, reason = nil) ⇒ Object
Deletes a webhook https://discordapp.com/developers/docs/resources/webhook#delete-webhook
61 62 63 64 65 66 67 68 69 70 |
# File 'lib/discordrb/api/webhook.rb', line 61 def delete_webhook(token, webhook_id, reason = nil) Discordrb::API.request( :webhooks_wid, webhook_id, :delete, "#{Discordrb::API.api_base}/webhooks/#{webhook_id}", Authorization: token, 'X-Audit-Log-Reason': reason ) end |