server.get_channel was moved to server.channels.get a long time ago (set.py)

This commit is contained in:
jesopo 2019-01-30 19:40:20 +00:00
parent a2e23acc61
commit cd93118571

View file

@ -68,7 +68,7 @@ class Module(ModuleManager.BaseModule):
:require_access: channelset
:permission: channelsetoverride
"""
channel = event["server"].get_channel(event["args_split"][0])
channel = event["server"].channels.get(event["args_split"][0])
self._set("channelset", event, channel, False, 1)
@utils.hook("received.command.channelset", channel_only=True,