Skip to content

Move discord/utils.py to a separate discord/utils/ submodule. #2652

@Paillat-dev

Description

@Paillat-dev

Summary

The utils.py file should be refactored in a submodule to allow better distinction between util features.

What is the feature request for?

The core library

The Problem

Currently utils, like most of the library's code actually, is present in quite long files, utils.py is currently 1244 lines long. This is generally not enjoyable, and long files should be, when possible avoided. Additionally, utils used for many purposes in the library and "served" to the user are mixed up without clear distinction in utils.py. It should not be too hard, compared to the rest of the lib, to split up utils functions by scope, and utils should in principle not be all in one file.

The Ideal Solution

The best solution would be to make an utils submodule with __init__ exporting the user-facing utils, and the rest being accessed directly.

The Current Solution

n/a

Additional Context

n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions