コード例 #1
0
 public async Task MentionAsync(
     [Summary("The role that the user is attempting to mention.")]
     IRole role,
     [Summary("Message to provide to mentionees. The 'message' argument is ignored by the command.")]
     [Remainder]
     string message = null)
 => await MentionService.MentionRoleAsync(role, Context.Channel, message);
コード例 #2
0
        public async Task TestRegularExpression()
        {
            IMentionService mentionService = new MentionService();


            var html  = File.ReadAllText("Data\\test.html");
            var users = await mentionService.DetectAsync(html);

            Assert.True(true);
        }
コード例 #3
0
 public async Task MentionAsync(
     [Summary("The role that the user is attempting to mention.")]
     IRole role)
 => await MentionService.MentionRoleAsync(role, Context.Channel);