Skip to content

Commit

Permalink
PermissionOverwrite: use .type instead of ._type (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilal2453 authored Jun 12, 2023
1 parent 3637e93 commit 1d66402
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/containers/PermissionOverwrite.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ This may make an HTTP request if the object is not cached.
]=]
function PermissionOverwrite:getObject()
local guild = self._parent._parent
if self._type == 'role' then
if self.type == 'role' then
return guild:getRole(self._id)
elseif self._type == 'member' then
elseif self.type == 'member' then
return guild:getMember(self._id)
end
end
Expand Down

0 comments on commit 1d66402

Please sign in to comment.