3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 01:09:22 +01:00

Channel: remove call to deprecated function name

This commit is contained in:
James Lu 2019-08-22 22:53:02 -07:00
parent e5493eac87
commit 575cff297d

View File

@ -2196,7 +2196,7 @@ class Channel(TSObject, structures.CamelCaseToSnakeCase, structures.CopyWrapper)
def is_voice_plus(self, uid):
"""Returns whether the given user is voice or above in the channel."""
# If the user has any prefix mode, it has to be voice or greater.
return bool(self.getPrefixModes(uid))
return bool(self.get_prefix_modes(uid))
def is_halfop_plus(self, uid):
"""Returns whether the given user is halfop or above in the channel."""