public static string ResponseHasBeenUpdated(this ResponsesService responsesService, Contexts contexts, string onEvent, string oldMessage, string newMessage)
 {
     return(responsesService.ProcessResponse("ResponseHasBeenUpdated", contexts,
                                             new KeyValuePair <string, string>("onEvent", onEvent),
                                             new KeyValuePair <string, string>("oldMessage", oldMessage),
                                             new KeyValuePair <string, string>("newMessage", newMessage)));
 }
Exemple #2
0
 public static string UserHasBeenWarned(this ResponsesService responsesService, string granter, string receiver, string reason)
 {
     return(responsesService.ProcessResponse("UserHasBeenWarned",
                                             new KeyValuePair <string, string>("granter", granter),
                                             new KeyValuePair <string, string>("receiver", receiver),
                                             new KeyValuePair <string, string>("reason", reason)));
 }
 public static string UnmutedUserForUser(this ResponsesService responsesService, UserContext user, DiscordServerContext server)
 {
     return(responsesService.ProcessResponse("UnmutedUserForUser",
                                             new KeyValuePair <string, string>("user", user.Name),
                                             new KeyValuePair <string, string>("server", server.Name)));
 }
 public static string MutedUser(this ResponsesService responsesService, UserContext user, DateTime timeEnd)
 {
     return(responsesService.ProcessResponse("MutedUser",
                                             new KeyValuePair <string, string>("user", user.Name), //todo: change to GetMention when message will be send as Embed
                                             new KeyValuePair <string, string>("timeEnd", timeEnd.ToLocalTimeString())));
 }
 public static string UserNotFound(this ResponsesService responsesService, string user)
 {
     return(responsesService.ProcessResponse("UserNotFound",
                                             new KeyValuePair <string, string>("user", user)));
 }
 public static string NotAdminPermissions(this ResponsesService responsesService)
 {
     return(responsesService.ProcessResponse("NotAdminPermissions"));
 }
 public static string NewUserArrived(this ResponsesService responsesService, Contexts contexts)
 {
     return(responsesService.ProcessResponse("NewUserArrived",
                                             new KeyValuePair <string, string>("user", contexts.User.Mention),
                                             new KeyValuePair <string, string>("server", contexts.Server.Name)));
 }
 public static string CustomCommandsHeader(this ResponsesService responsesService)
 {
     return(responsesService.ProcessResponse("CustomCommandsHeader"));
 }
 public static string AvailableCommands(this ResponsesService responsesService)
 {
     return(responsesService.ProcessResponse("AvailableCommands"));
 }
 public static string NoDefaultDescription(this ResponsesService responsesService)
 {
     return(responsesService.ProcessResponse("NoDefaultDescription"));
 }
 public static string ThereAreNoMutedUsers(this ResponsesService responsesService)
 {
     return(responsesService.ProcessResponse("ThereAreNoMutedUsers"));
 }
 public static string TryToGoogleIt(this ResponsesService responsesService, string link)
 {
     return(responsesService.ProcessResponse("TryToGoogleIt",
                                             new KeyValuePair <string, string>("link", link)));
 }
 public static string MutedUsersListSent(this ResponsesService responsesService)
 {
     return(responsesService.ProcessResponse("MutedUsersListSent"));
 }
 public static string MoreThanOneRegexHasBeenMatched(this ResponsesService responsesService)
 {
     return(responsesService.ProcessResponse("MoreThanOneRegexHasBeenMatched"));
 }
 public static string ServerDoesntHaveAnyTrustedRole(this ResponsesService responsesService)
 {
     return(responsesService.ProcessResponse("ServerDoesntHaveAnyTrustedRole"));
 }
 public static string ExampleText(this ResponsesService responsesService)
 {
     return(responsesService.ProcessResponse("ExampleText"));
 }
 public static string Roles(this ResponsesService responsesService)
 {
     return(responsesService.ProcessResponse("Roles"));
 }
 public static string HereYouCanFindAvailableCommandsWithDescriptions(this ResponsesService responsesService)
 {
     return(responsesService.ProcessResponse("HereYouCanFindAvailableCommandsWithDescriptions"));
 }
 public static string SpamAlertRecognized(this ResponsesService responsesService, Contexts contexts)
 {
     return(responsesService.ProcessResponse("SpamAlertRecognized", contexts));
 }
 public static string RoleIsInUserAlready(this ResponsesService responsesService, Contexts contexts, string role)
 {
     return(responsesService.ProcessResponse("RoleIsInUserAlready", contexts,
                                             new KeyValuePair <string, string>("role", role)));
 }
 public static string UserIsNotAdmin(this ResponsesService responsesService)
 {
     return(responsesService.ProcessResponse("UserIsNotAdmin"));
 }
 public static string HowToUseCommand(this ResponsesService responsesService)
 {
     return(responsesService.ProcessResponse("HowToUseCommand"));
 }
 public static string UserDidntMentionAnyUser(this ResponsesService responsesService)
 {
     return(responsesService.ProcessResponse("UserDidntMentionAnyUser"));
 }
 public static string Type(this ResponsesService responsesService)
 {
     return(responsesService.ProcessResponse("Type"));
 }
 public static string RoleNotFound(this ResponsesService responsesService, string role)
 {
     return(responsesService.ProcessResponse("RoleNotFound",
                                             new KeyValuePair <string, string>("role", role)));
 }
 public static string Parameters(this ResponsesService responsesService)
 {
     return(responsesService.ProcessResponse("Parameters"));
 }
 public static string RoleAddedToUser(this ResponsesService responsesService, Contexts contexts, string role)
 {
     return(responsesService.ProcessResponse("RoleAddedToUser", contexts,
                                             new KeyValuePair <string, string>("role", role)));
 }
 public static string ExampleUserMention(this ResponsesService responsesService)
 {
     return(responsesService.ProcessResponse("ExampleUserMention"));
 }
 public static string TimeCannotBeNegative(this ResponsesService responsesService)
 {
     return(responsesService.ProcessResponse("TimeCannotBeNegative"));
 }
 public static string ExampleSingleWord(this ResponsesService responsesService)
 {
     return(responsesService.ProcessResponse("ExampleSingleWord"));
 }