private string ParseFailedCheck(CheckBaseAttribute attr) { return(attr switch { CooldownAttribute _ => "You cannot do that so often!", RequireOwnerAttribute _ => "Only the server owner can use that command!", RequirePermissionsAttribute _ => "You don't have permission to do that!", RequireRolesAttribute _ => "You do not have a required role!", RequireUserPermissionsAttribute _ => "You don't have permission to do that!", RequireNsfwAttribute _ => "This command can only be used in an NSFW channel!", _ => "Unknown Discord API error occured, please try again later." });
private static string ParseFailedCheck(CheckBaseAttribute attr) { return(attr switch { RequireOwnerAttribute _ => ", only the server owner can use that command.", RequirePermissionsAttribute _ => ", you don't have permission to do that.", RequireRolesAttribute _ => ", you do not have a required role.", RequireUserPermissionsAttribute _ => ", you don't have permission to do that.", RequireNsfwAttribute _ => ", this command can only be used in an NSFW channel.", RequirePollStartChannelAttribute => ", you cannot start a poll in this channel.", _ => ", an unknown Discord API error has occurred, contact the developer and please try again later." });