Exemple #1
0
        private async Task ProcessIntelUserAsync(SocketCommandContext context, IUser user, CancellationToken cancellationToken)
        {
            UserData userData = await _userDataStore.GetAsync(user.Id, cancellationToken).ConfigureAwait(false);

            EmbedBuilder embed = new EmbedBuilder();

            AddUserInfo(embed, user, userData);
            if (!context.IsPrivate)
            {
                SocketGuildUser guildUser = await context.Guild.GetGuildUserAsync(user.Id).ConfigureAwait(false);

                if (guildUser != null)
                {
                    AddGuildUserInfo(embed, guildUser);
                }
            }
            await context.ReplyAsync(null, false, embed.Build(), cancellationToken).ConfigureAwait(false);
        }