不和谐.Net |创建Webhook



我可以使用c#Discord.Net库为某些频道创建一个webhook吗?
我试着用谷歌搜索文档,但是找不到任何关于它的东西。在Discord.js中有:

channel.createWebhook({
name: 'Username',
avatar: 'link',
}).then(webhook => console.log(`Created webhook ${webhook}`))

Discord.Net有这样的东西吗?

至此解决:https://github.com/discord-net/Discord.Net/issues/2658

:不久

  1. 更新不和谐。净3.10.0
  2. 在你的channel对象上Cast IIntegrationChannel
var channel = Context.Channel as IIntegrationChannel;
await channel.CreateWebhookAsync("test");

最新更新