Connection

NAME

API::Discord::Connection - Combines a websocket and a REST client

DESCRIPTION

Discord sends us information over the websocket, and we send it stuff over the REST client. Mostly.

This is used internally and probably of limited use otherwise.

SYNOPSIS

my $c = API::Discord::Connection.new:
        :url(wss://...),
        :$token,
    ;
... # other stuff

PROPERTIES

METHODS

new

$.ws-url, $.rest-url and $.token are required here.

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.