Skip to content

api overload deprecation for GET /guilds/:id/ is confusing #10822

Closed
@almostSouji

Description

@almostSouji

Which package is this bug report for?

core

Issue description

Optional second parameter causes confusing overload match regarding deprecation

Code sample

// deprecation warning
api.guilds.get(guild_id)
api.guilds.get(guild_id, undefined)

// no warning
api.guilds.get(guild_id, undefined, undefined)

Versions

  • "@discordjs/core": "2.0.1",

Issue priority

Low (slightly annoying)

Which partials do you have configured?

No Partials

Which gateway intents are you subscribing to?

No Intents

I have tested this issue on a development release

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions