Skip to content

Commit

Permalink
Merge branch 'incognico-discord-dot-com'
Browse files Browse the repository at this point in the history
  • Loading branch information
vsTerminus committed May 15, 2020
2 parents 588c108 + 065155b commit 7e7ee2d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/Mojo/Discord.pm
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ has name => ( is => 'ro' );
has url => ( is => 'ro' );
has version => ( is => 'ro' );
has reconnect => ( is => 'ro' );
has base_url => ( is => 'rw', default => 'https://discordapp.com/api' );
has base_url => ( is => 'rw', default => 'https://discord.com/api' );
has gw => ( is => 'lazy', builder => sub {
my $self = shift;
Mojo::Discord::Gateway->new(
Expand Down Expand Up @@ -417,7 +417,7 @@ $bot->start();
=head1 DESCRIPTION
L<Mojo::Discord> is a L<Mojo::UserAgent> based L<Discord|https://discordapp.com> API library designed for creating bots (including user-bots). A Discord User or Bot Token is required.
L<Mojo::Discord> is a L<Mojo::UserAgent> based L<Discord|https://discord.com> API library designed for creating bots (including user-bots). A Discord User or Bot Token is required.
The Discord API is divided into four main parts: OAuth, REST, Gateway, and Guild. The main module is a wrapper that allows you to use the REST and Gateway modules together as part of a single object.
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/Discord/Auth.pm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ has version => ( is => 'ro', required => 1 );
has code => ( is => 'rw' );
has refresh_token => ( is => 'ro' );
has verbose => ( is => 'rw' );
has base_url => ( is => 'ro', default => 'https://discordapp.com/api' );
has base_url => ( is => 'ro', default => 'https://discord.com/api' );
has token_url => ( is => 'ro', default => sub { shift->base_url . '/oauth2/token' } );
has agent => ( is => 'rw' );
has grant_type => ( is => 'rw', default => sub { defined shift->code? 'authorization_code' : 'refresh_token' } );
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/Discord/Gateway.pm
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ has tx => ( is => 'rw' );
has heartbeat_interval => ( is => 'rw' );
has heartbeat_loop => ( is => 'rw' );
has heartbeat => ( is => 'rw', default => 2 );
has base_url => ( is => 'ro', default => 'https://discordapp.com/api' );
has base_url => ( is => 'ro', default => 'https://discord.com/api' );
has gateway_url => ( is => 'rw', default => sub { shift->base_url . '/gateway' });
has gateway_version => ( is => 'ro', default => 6 );
has gateway_encoding => ( is => 'ro', default => 'json' );
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/Discord/REST.pm
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ has 'token' => ( is => 'ro' );
has 'name' => ( is => 'rw', required => 1 );
has 'url' => ( is => 'rw', required => 1 );
has 'version' => ( is => 'ro', required => 1 );
has 'base_url' => ( is => 'ro', default => 'https://discordapp.com/api' );
has 'base_url' => ( is => 'ro', default => 'https://discord.com/api' );
has 'agent' => ( is => 'lazy', builder => sub { my $self = shift; return $self->name . ' (' . $self->url . ',' . $self->version . ')' } );
has 'ua' => ( is => 'lazy', builder => sub
{
Expand Down

0 comments on commit 7e7ee2d

Please sign in to comment.