背景:我一直在尝试创建一个在 VS C# 中显示用户名的机器人。但我会继续解决这个问题,感谢所有帮助。
if(messagess.Content == "K")
{
while (true)
{
Console.WriteLine("Type in your commands and I'll speak em");
var Keys = Console.ReadLine();
if (Keys == "Users")
{
var config = new DiscordSocketConfig
{
AlwaysDownloadUsers = true,
MessageCacheSize = 100
};
Console.WriteLine();
}else
{
await messagess.Channel.SendMessageAsync(Keys);
}