Skip to content

Client::application_id not set on init #3

@valzargaming

Description

@valzargaming

$mtg->getLoop()->addTimer(2, $func); // Workaround for Client's application_id not always being set on init

There is a currently known race condition as the DiscordPHP API Library v10.18.25 currently populates the client inside of a promise interface. The call to do so is made prior to the init event being emitted, however it is not guaranteed to finish resolving prior to being accessed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions