Method CreateWebhookAsync
- Namespace
- DSharpPlus
- Assembly
- DSharpPlus.Rest.dll
CreateWebhookAsync(ulong, string, string, string)
Creates a new webhook
public Task<DiscordWebhook> CreateWebhookAsync(ulong channelId, string name, string base64Avatar, string reason)
Parameters
channelId
ulongChannel ID
name
stringWebhook name
base64Avatar
stringWebhook avatar (base64)
reason
stringReason why this webhook was created
Returns
CreateWebhookAsync(ulong, string, Stream, string)
Creates a new webhook
public Task<DiscordWebhook> CreateWebhookAsync(ulong channelId, string name, Stream avatar = null, string reason = null)
Parameters
channelId
ulongChannel ID
name
stringWebhook name
avatar
StreamWebhook avatar
reason
stringReason why this webhook was created