Skip to content

Commit

Permalink
fix: permission calculator for server owner (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
sussycatgirl committed Apr 12, 2023
1 parent 63975a9 commit d452295
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/permissions/calculator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function calculatePermission(

if (target instanceof Server) {
// 1. Check if owner.
if (target.owner === user?.id) {
if (target.ownerId === user?.id) {
return Permission.GrantAllSafe;
} else {
// 2. Get ServerMember.
Expand Down

0 comments on commit d452295

Please sign in to comment.