Exemplo n.º 1
0
        public async Task Skill(Interaction interaction)
        {
            var user    = _userRepository.GetUser(interaction.UserId);
            var monster = _spawnedMonsterRepository.GetMonster(int.Parse(interaction.Value));

            if (monster == null)
            {
                return;
            }

            var response = await _skillService.ActivateSkill(user, monster, interaction.ChannelId);

            await _slack.SendEphemeralMessage(response.Message, user.Id, interaction.ChannelId);

            await UpdateMonsterAttackBlocks(monster, interaction.ResponseUrl);
        }