Beispiel #1
0
        public async Task <IActionResult> AddCustomAdvancedCommand([FromRoute] string guildId,
                                                                   [FromBody] IList <CustomAdvancedCommandDto> advancedCommands)
        {
            var user = await _userManager.GetUserAsync(User);

            var result = await _pluginService.AddCustomAdvancedCommandsAsync(guildId, advancedCommands, user);

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

            return(Ok());
        }