Changed the Client structure
This commit is contained in:
@@ -7,9 +7,9 @@ from discord.abc import GuildChannel
|
||||
from discord.commands import SlashCommandGroup
|
||||
from discord.ext import commands
|
||||
from libbot import config_get
|
||||
from libbot.pycord.classes import PycordBot
|
||||
from libbot.sync import config_get as sync_config_get
|
||||
|
||||
from classes.holo_bot import HoloBot
|
||||
from classes.holo_user import HoloUser
|
||||
from enums import Color
|
||||
from modules.database import col_users
|
||||
@@ -19,8 +19,8 @@ logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class CustomChannels(commands.Cog):
|
||||
def __init__(self, client: PycordBot):
|
||||
self.client: PycordBot = client
|
||||
def __init__(self, client: HoloBot):
|
||||
self.client: HoloBot = client
|
||||
|
||||
@commands.Cog.listener()
|
||||
async def on_guild_channel_delete(self, channel: GuildChannel) -> None:
|
||||
@@ -234,5 +234,5 @@ class CustomChannels(commands.Cog):
|
||||
)
|
||||
|
||||
|
||||
def setup(client: PycordBot) -> None:
|
||||
def setup(client: HoloBot) -> None:
|
||||
client.add_cog(CustomChannels(client))
|
||||
|
Reference in New Issue
Block a user