简体   繁体   English

如何在不和谐中初始化公会,c#?

[英]How can I initialize a guild in discord, c#?

IGuild guild;
IGuildUser user = guild.GetUserAsync(buffer,CacheMode.AllowDownload).Result;

I want guild to be the guild , the bot is on.How can I do that?我希望公会成为公会,机器人已开启。我该怎么做?

// The Id of the guild you want
ulong guildId = 123456789;

// Inject DiscordSocketClient through DI
var guild = _client.GetGuild(guildId);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM