You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to create a generic webhook for use across the entire server, as opposed to an obnoxious number of webhooks per channel. I create the singular webhook and reassign it's Channel, but it still posts in the original specified channel in server settings. ChannelID reassignment doesn't work either.
using (var client = new DiscordWebhookClient("https://discordapp.com/api/webhooks/whatever"))
{
await client.ModifyWebhookAsync(x => x.Channel = BotClient.GetChannel(Context.Channel.Id) as SocketTextChannel);
await client.ModifyWebhookAsync(x => x.ChannelId = Context.Channel.Id);
await client.SendMessageAsync("test", false, null);
}
The text was updated successfully, but these errors were encountered:
I'm trying to create a generic webhook for use across the entire server, as opposed to an obnoxious number of webhooks per channel. I create the singular webhook and reassign it's Channel, but it still posts in the original specified channel in server settings. ChannelID reassignment doesn't work either.
The text was updated successfully, but these errors were encountered: