Table of Contents

Method ModifyWebhookAsync

Namespace
DSharpPlus
Assembly
DSharpPlus.Rest.dll

ModifyWebhookAsync(ulong, ulong, string, string, string)

Modifies a webhook

public Task<DiscordWebhook> ModifyWebhookAsync(ulong webhookId, ulong channelId, string name, string base64Avatar, string reason)

Parameters

webhookId ulong

Webhook ID

channelId ulong

The new channel ID the webhook should be moved to.

name string

New webhook name

base64Avatar string

New webhook avatar (base64)

reason string

Reason why this webhook was modified

Returns

Task<DiscordWebhook>

ModifyWebhookAsync(ulong, ulong, string, Stream, string)

Modifies a webhook

public Task<DiscordWebhook> ModifyWebhookAsync(ulong webhookId, ulong channelId, string name, Stream avatar, string reason)

Parameters

webhookId ulong

Webhook ID

channelId ulong

The new channel ID the webhook should be moved to.

name string

New webhook name

avatar Stream

New webhook avatar

reason string

Reason why this webhook was modified

Returns

Task<DiscordWebhook>

ModifyWebhookAsync(ulong, string, string, string, string)

Modifies a webhook (when user is not in said guild)

public Task<DiscordWebhook> ModifyWebhookAsync(ulong webhookId, string name, string base64Avatar, string webhookToken, string reason)

Parameters

webhookId ulong

Webhook ID

name string

New webhook name

base64Avatar string

New webhook avatar (base64)

webhookToken string

Webhook token

reason string

Reason why this webhook was modified

Returns

Task<DiscordWebhook>

ModifyWebhookAsync(ulong, string, Stream, string, string)

Modifies a webhook (when user is not in said guild)

public Task<DiscordWebhook> ModifyWebhookAsync(ulong webhookId, string name, Stream avatar, string webhookToken, string reason)

Parameters

webhookId ulong

Webhook ID

name string

New webhook name

avatar Stream

New webhook avatar

webhookToken string

Webhook token

reason string

Reason why this webhook was modified

Returns

Task<DiscordWebhook>