From 91f2d6cb21bc4a28b8c9e0af0c39f8470f2221bc Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Mon, 12 Sep 2022 22:29:46 +0200 Subject: [PATCH] Code refactoring --- src/cpl_discord/container/__init__.py | 8 ++++++++ src/cpl_discord/container/text_channel.py | 2 +- src/cpl_discord/container/{threads.py => thread.py} | 0 src/cpl_discord/helper/__init__.py | 1 + 4 files changed, 10 insertions(+), 1 deletion(-) rename src/cpl_discord/container/{threads.py => thread.py} (100%) diff --git a/src/cpl_discord/container/__init__.py b/src/cpl_discord/container/__init__.py index 27c3f929..9d541151 100644 --- a/src/cpl_discord/container/__init__.py +++ b/src/cpl_discord/container/__init__.py @@ -21,6 +21,14 @@ from collections import namedtuple # imports +from .category_channel import CategoryChannel +from .container import Container +from .guild import Guild +from .member import Member +from .role import Role +from .text_channel import TextChannel +from .thread import Thread +from .voice_channel import VoiceChannel VersionInfo = namedtuple('VersionInfo', 'major minor micro') version_info = VersionInfo(major='2022', minor='10', micro='2') diff --git a/src/cpl_discord/container/text_channel.py b/src/cpl_discord/container/text_channel.py index 62347bbf..49099b7b 100644 --- a/src/cpl_discord/container/text_channel.py +++ b/src/cpl_discord/container/text_channel.py @@ -2,7 +2,7 @@ import discord from cpl_discord.container.container import Container from cpl_discord.container.member import Member -from cpl_discord.container.threads import Thread +from cpl_discord.container.thread import Thread from cpl_discord.helper.to_containers_converter import ToContainersConverter from cpl_query.extension import List diff --git a/src/cpl_discord/container/threads.py b/src/cpl_discord/container/thread.py similarity index 100% rename from src/cpl_discord/container/threads.py rename to src/cpl_discord/container/thread.py diff --git a/src/cpl_discord/helper/__init__.py b/src/cpl_discord/helper/__init__.py index 1e69ed07..f0b6e168 100644 --- a/src/cpl_discord/helper/__init__.py +++ b/src/cpl_discord/helper/__init__.py @@ -21,6 +21,7 @@ from collections import namedtuple # imports +from .to_containers_converter import ToContainersConverter VersionInfo = namedtuple('VersionInfo', 'major minor micro') version_info = VersionInfo(major='2022', minor='10', micro='2')