From dccb460e5cba4dee9128d5fc36e28d697b25f810 Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 5 Nov 2018 21:39:00 +0000 Subject: [PATCH] 'rename_channel' -> 'rename' in src/Database.channels --- src/Database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Database.py b/src/Database.py index 8dcf42ec..1ed977de 100644 --- a/src/Database.py +++ b/src/Database.py @@ -42,7 +42,7 @@ class Channels(Table): channels WHERE server_id=? AND name=?""", [server_id, name.lower()]) 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=?", [new_name.lower(), channel_id])