Example #1
0
        /// <summary>
        /// Logs intot he gateway
        /// </summary>
        internal static void LoginToGateway(this DiscordSocketClient client)
        {
            var identification = new GatewayIdentification()
            {
                Token      = client.Token,
                Properties = client.SuperPropertiesInfo
            };

            client.Socket.Send(GatewayOpcode.Identify, identification);
        }
Example #2
0
        /// <summary>
        /// Logs intot he gateway
        /// </summary>
        internal static void LoginToGateway(this DiscordSocketClient client)
        {
            var identification = new GatewayIdentification()
            {
                Token              = client.Token,
                Properties         = client.Config.SuperProperties,
                GuildSubscriptions = client.Config.GuildSubscriptions,
                //Intents = client.Config.Intents.Intents
            };

            client.Send(GatewayOpcode.Identify, identification);
        }