Skip to content

Improve return types of bot.utils.channel.get_or_fetch_channel #2346

@shtlrs

Description

@shtlrs

Currently, get_or_fetch_channel is only typed to return an instance of GuildChannel, which isn't always true since it can also return a Thread or a PrivateChannel

The purpose of this issue is to improve the return type hints.

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: backendRelated to internal functionality and utilities (error_handler, logging, security, utils and core)status: approvedThe issue has received a core developer's approvalt: enhancementChanges or improvements to existing features

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions