Exemplo n.º 1
0
Arquivo: Owner.cs Projeto: Lunerr/FFA
        public async Task AddRuleAsync(
            [Summary("\"Cracking your willy in broad daylight\"")] string content,
            [Summary("Harassment")] string category,
            [Summary("72h")] TimeSpan?maxMuteLength = null)
        {
            await _dbRules.InsertOneAsync(new Rule(Context.Guild.Id, content, category, maxMuteLength));

            await Context.ReplyAsync($"You have successfully added a new rule.");

            await _rulesService.UpdateAsync(Context.Guild);
        }