Skip to content

Commit

Permalink
Merge pull request #113 from mineral-dart/fix/permissions
Browse files Browse the repository at this point in the history
Fix/permissions
  • Loading branch information
PandaGuerrier authored May 23, 2023
2 parents 0dfa92b + 890079a commit 3758ee9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/api/permission_overwrite.dart
Original file line number Diff line number Diff line change
@@ -42,8 +42,8 @@ class PermissionOverwrite {
type: payload['type'] is String
? PermissionOverwriteType.values.firstWhere((element) => element.name == payload['type'])
: PermissionOverwriteType.values.firstWhere((element) => element.value == payload['type']),
allow: Helper.bitfieldToPermissions(payload['allow']),
deny: Helper.bitfieldToPermissions(payload['deny']),
allow: Helper.bitfieldToPermissions(int.parse(payload['allow'].toString())),
deny: Helper.bitfieldToPermissions(int.parse(payload['deny'].toString())),
);
}
}

0 comments on commit 3758ee9

Please sign in to comment.