这是我的代码。我可以复制DiscordSocketClient
,但不能使用。我该怎么办?
班级有ModuleBase<SocketCommandContext>
public async Task Pingussdfer()
{
subClient = Context.Client;
}
public async Task Announce() // 1
{
ulong id = 546248535339958296;
var chnl = subClient.GetChannel(id) as IMessageChannel; // 4
await chnl.SendMessageAsync("Announcement!"); // 5
}