Skip to content

Commit 9f6dab1

Browse files
authored
Update abc.py
1 parent 1d65214 commit 9f6dab1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

discord/abc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,10 @@ def _asdict(self) -> PermissionOverwritePayload:
211211
}
212212

213213
def is_role(self) -> bool:
214-
return self.type == 0
214+
return self.type == self.ROLE
215215

216216
def is_member(self) -> bool:
217-
return self.type == 1
217+
return self.type == self.MEMBER
218218

219219

220220
GCH = TypeVar('GCH', bound='GuildChannel')

0 commit comments

Comments
 (0)