如何让我的不和谐机器人显示我服务器上的用户名? C#

时间:2021-07-21 22:09:18

标签: c# discord discord.net

背景:我一直在尝试创建一个在 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);
                    }

0 个答案:

没有答案