public async Task RbpAddRelation(int phraseIndex, int roleIndex)
        {
            var result = RoleByPhraseProvider.CreateRelation(Context.Guild, phraseIndex, roleIndex);

            if (result == RoleByPhraseProvider.RelationCreationResult.Success)
            {
                await RbpStatus();
            }
            else
            {
                await ReplyAsync("That's just what I need, great! Terrific!, something went wrong...");

                Console.WriteLine(result.ToString());
            }
        }
Exemple #2
0
        public async Task RbpAddRelation(int phraseIndex, int roleIndex)
        {
            var result = RoleByPhraseProvider.CreateRelation(Context.Guild, phraseIndex, roleIndex);

            if (result == RoleByPhraseProvider.RelationCreationResult.Success)
            {
                await RbpStatus();
            }
            else
            {
                await ReplyAsync("Aha... więc nooo ten... nie działa.");

                Console.WriteLine(result.ToString());
            }
        }