private Task <bool> Login() { Messenger.Default.Send(new ConnectionStatusMessage(ConnectionStatus.Connecting)); IAuthenticator authenticator = new DiscordAuthenticator(_accessToken); AuthenticatedRestFactory authenticatedRestFactory = new AuthenticatedRestFactory(new DiscordApiConfiguration() { BaseUrl = "https://discordapp.com/api" }, authenticator); ActivitesService = authenticatedRestFactory.GetActivitesService(); ChannelService = authenticatedRestFactory.GetChannelService(); ConnectionsService = authenticatedRestFactory.GetConnectionService(); GameService = authenticatedRestFactory.GetGameService(); GuildService = authenticatedRestFactory.GetGuildService(); InviteService = authenticatedRestFactory.GetInviteService(); MiscService = authenticatedRestFactory.GetMiscService(); UserService = authenticatedRestFactory.GetUserService(); VoiceService = authenticatedRestFactory.GetVoiceService(); return(_gatewayService.InitializeGateway(_accessToken)); }