'rename_channel' -> 'rename' in src/Database.channels
This commit is contained in:
parent
8930d04567
commit
dccb460e5c
1 changed files with 1 additions and 1 deletions
|
@ -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])
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue