Skip to content
This repository was archived by the owner on Feb 4, 2021. It is now read-only.
This repository was archived by the owner on Feb 4, 2021. It is now read-only.

Custom method overrides for all available gateway codes #4

@n7st

Description

@n7st

When building the class, overriding the default methods (inside Discord::Client) for opcodes from Discord should be allowed.

Presently, the client is created like:

my $gateway = Discord::Client->new({
    auth_token     => 'DISCORD AUTH TOKEN HERE',
    user_agent     => 'Some user agent string here',
    callback_class => $main_class,
    routines       => {
        each_message => 'message_received',
        finish       => 'finished',
        connect      => 'connected',
    },
});

routines should be adjusted to allow gateway codes or names to be passed in.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions