Пример #1
0
        public async Task <IActionResult> AddCustomCommand([FromRoute] string guildId, CustomCommandDto customCommandDto)
        {
            var user = await _userManager.GetUserAsync(User);

            var result = await _pluginService.AddCustomCommandAsync(guildId, customCommandDto, user);

            if (!result)
            {
                return(BadRequest());
            }

            return(Ok());
        }