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
ulongWebhook ID
channelId
ulongThe new channel ID the webhook should be moved to.
name
stringNew webhook name
base64Avatar
stringNew webhook avatar (base64)
reason
stringReason 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
ulongWebhook ID
channelId
ulongThe new channel ID the webhook should be moved to.
name
stringNew webhook name
avatar
StreamNew webhook avatar
reason
stringReason 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
ulongWebhook ID
name
stringNew webhook name
base64Avatar
stringNew webhook avatar (base64)
webhookToken
stringWebhook token
reason
stringReason 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
ulongWebhook ID
name
stringNew webhook name
avatar
StreamNew webhook avatar
webhookToken
stringWebhook token
reason
stringReason why this webhook was modified
Returns
- Task<DiscordWebhook>