示例#1
0
        public async Task LogServers(CommandContext ctx)
        {
            List <DiscordGuild> servers = GetServerList();

            GoogleSheets sheets = new GoogleSheets();

            sheets.InitSheetsApi();
            sheets.UpdateData(servers);

            Console.WriteLine("List of servers have been written to owners Google Spreadsheet.");

            await Task.CompletedTask;
        }