Exemplo n.º 1
0
        public async Task LogMeIn()
        {
            var GUser = DA.CurrentGuild.GetUser(Context.User.Id);

            var Data = AM.GenBearer(GUser);

            if (Data.Bearer == default)
            {
                _ = ReplyAsync(":negative_squared_cross_mark: | You have a currently active login link in DMs!");

                return;
            }

            var Embed = new EmbedBuilder();

            Embed.Title = $"Login as {GUser}";

            Embed.Description = $"Click [HERE](https://kings-queens.github.io/Bearer/{Data.UserID}/{Data.Bearer}) to login! One-time use link, expires within 5 mins...";

            var T = GUser.SendMessageAsync(default, false, Embed.Build());