Пример #1
0
        public async Task GetGearOfUser([Summary("The user")] IUser user)
        {
            var familyName = MiscHelper.GetFamilyName(Context, user);
            var memberGear = SpreadsheetInstance.CommandsParser.GetGear(familyName);

            if (memberGear == null)
            {
                await Context.Channel.SendMessageAsync($"Could not find any gear for {user.Mention}. They can add it with the ``!gear <stat> <value>`` command");
            }
            else
            {
                await Context.Channel.SendMessageAsync("", false, EmbedHelper.GearProfileEmbed(user, memberGear));
            }
        }