From 418a21ddd4cc16f72e854f1d37ae89083518d8cf Mon Sep 17 00:00:00 2001 From: Alex Gravely Date: Thu, 16 May 2019 16:46:06 -0400 Subject: [PATCH] Update to use webhook URL ctor. --- samples/04_webhook_client/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/04_webhook_client/Program.cs b/samples/04_webhook_client/Program.cs index e425affc7..c2e5faa03 100644 --- a/samples/04_webhook_client/Program.cs +++ b/samples/04_webhook_client/Program.cs @@ -16,8 +16,8 @@ namespace _04_webhook_client { // The webhook url follows the format https://discordapp.com/api/webhooks/{id}/{token} // Because anyone with the webhook URL can use your webhook - // you should NOT hard code the URL or ID + token into your application. - using (var client = new DiscordWebhookClient(webhookId: 0, webhookToken: "")) + // you should NOT hard code the URL or ID + token into your application. + using (var client = new DiscordWebhookClient("https://discordapp.com/api/webhooks/123/abc123")) { var embed = new EmbedBuilder {