refactor(bot): ⚰️ Remove dead code.

This commit is contained in:
Nyeki.py
2024-10-18 14:21:47 -03:00
parent 442aa22ffa
commit c26cecc89c
+1 -2
View File
@@ -5,12 +5,11 @@ import discord
from payphone.db import models from payphone.db import models
async def get_channel(channel: discord.TextChannel, for_update: bool = False) -> models.Channel: async def get_channel(channel: discord.TextChannel) -> models.Channel:
"""Returns a channel from the database, creating or updating it if it already exists. """Returns a channel from the database, creating or updating it if it already exists.
Args: Args:
channel (discord.TextChannel): The channel to fetch. channel (discord.TextChannel): The channel to fetch.
for_update (bool, optional): Whether the select should be FOR UPDATE or not.
Returns: Returns:
models.Channel: The channel row. models.Channel: The channel row.