Browse Source

Update to use webhook URL ctor.

pull/1241/head
Alex Gravely GitHub 6 years ago
parent
commit
418a21ddd4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      samples/04_webhook_client/Program.cs

+ 2
- 2
samples/04_webhook_client/Program.cs View File

@@ -16,8 +16,8 @@ namespace _04_webhook_client
{ {
// The webhook url follows the format https://discordapp.com/api/webhooks/{id}/{token} // The webhook url follows the format https://discordapp.com/api/webhooks/{id}/{token}
// Because anyone with the webhook URL can use your webhook // 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 var embed = new EmbedBuilder
{ {


Loading…
Cancel
Save