Table of Contents

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 ulong

Channel ID

name string

Webhook name

base64Avatar string

Webhook avatar (base64)

reason string

Reason why this webhook was created

Returns

Task<DiscordWebhook>

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 ulong

Channel ID

name string

Webhook name

avatar Stream

Webhook avatar

reason string

Reason why this webhook was created

Returns

Task<DiscordWebhook>