почему discord бот не работает

я использую библиотеку Discord.Net и Discord.Net.WebSocket

при запуске бота мне пишет:

You're using the GuildScheduledEvents gateway intent without listening to any events related to that intent, consider removing the intent from your config.

You're using the GuildInvites gateway intent without listening to any events related to that intent, consider removing the intent from your config.

код

class Program
{
DiscordSocketClient client;
    static void Main(string[] args)
    =>new Program().MainAsync().GetAwaiter().GetResult();

private async Task MainAsync()
    {
        client = new DiscordSocketClient();
        client.Log += Log;
        var token = "";
        await client.LoginAsync(TokenType.Bot,token);
        await client.StartAsync();
    }

   private Task Log(LogMessage msg)
    {
        Console.WriteLine(msg.Message);
        return Task.CompletedTask;
    }
}

Ответы (0 шт):