aboutsummaryrefslogtreecommitdiffstats
path: root/src/Types.hx
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2021-02-04 01:43:37 +0300
committerRblSb <msrblsb@gmail.com>2021-02-04 01:43:37 +0300
commit2bb127e1cd582d9151ef1b70c3496bc79776a95a (patch)
tree918bacef6e9e59754948fc7103570853fbb6c419 /src/Types.hx
parentec90923038d902d7c0fa5220afd5b79650e17d47 (diff)
Improve changeOrder permission
closes #21
Diffstat (limited to 'src/Types.hx')
-rw-r--r--src/Types.hx16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/Types.hx b/src/Types.hx
index 4061b09..02a2cee 100644
--- a/src/Types.hx
+++ b/src/Types.hx
@@ -27,17 +27,19 @@ typedef Config = {
templateUrl:String,
youtubeApiKey:String,
youtubePlaylistLimit:Int,
- permissions:{
- guest:Array<Permission>,
- user:Array<Permission>,
- leader:Array<Permission>,
- admin:Array<Permission>
- },
+ permissions:Permissions,
emotes:Array<Emote>,
filters:Array<Filter>,
?isVerbose:Bool,
?salt:String
-};
+}
+
+typedef Permissions = {
+ guest:Array<Permission>,
+ user:Array<Permission>,
+ leader:Array<Permission>,
+ admin:Array<Permission>
+}
enum abstract Permission(String) {
var GuestPerm = "guest";
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage