'rename_channel' -> 'rename' in src/Database.channels

This commit is contained in:
jesopo 2018-11-05 21:39:00 +00:00
parent 8930d04567
commit dccb460e5c

View file

@ -42,7 +42,7 @@ class Channels(Table):
channels WHERE server_id=? AND name=?""", channels WHERE server_id=? AND name=?""",
[server_id, name.lower()]) [server_id, name.lower()])
return value if value == None else value[0] return value if value == None else value[0]
def rename_channel(self, channel_id: int, new_name: str): def rename(self, channel_id: int, new_name: str):
self.database.execute("UPDATE channels SET name=? where channel_id=?", self.database.execute("UPDATE channels SET name=? where channel_id=?",
[new_name.lower(), channel_id]) [new_name.lower(), channel_id])