コード例 #1
0
        private async Task <CommandResponse> FailCommandAsync(Message message, string reason)
        {
            _responseBuilder.Clear();
            _responseBuilder.FailWithDescription(reason)
            .WithFooter(_config.Footer);
            var response = _responseBuilder.Build();
            await message.Channel.ReplyToAsync(message, response).ConfigureAwait(false);

            return(response);
        }