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:
parent
e5493eac87
commit
575cff297d
@ -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."""
|
||||
|
Loading…
Reference in New Issue
Block a user