NAME

AnyEvent::Discord - Provides an AnyEvent interface to the Discord bot API

SYNOPSIS

use AnyEvent::Discord;
my $client = AnyEvent::Discord->new({ token => 'mydiscordbottoken' });
$client->on('ready', sub { warn 'Connected'; });
$client->on('message_create', sub {
  my ($client, $data) = @_;
  warn '[' . $client->channels->{$data->{channel_id}} . '] (' . $data->{author}->{username} . ') - ' . $data->{content};
 });
 $client->connect();
 AnyEvent->condvar->recv;

DESCRIPTION

This module provides an AnyEvent interface for the Discord API over the REST and WebSocket APIs. It is designed to be somewhat similar to the SlackRTM and XMPP modules, with a subset of their far more mature functionality.

CONFIGURATION ACCESSORS

DATA ACCESSORS

PUBLIC METHODS

CAVEATS

This is incredibly unfinished.

AUTHOR

Nick Melnick nmelnick@cpan.org

COPYRIGHT AND LICENSE

This software is copyright (c) 2021, Nick Melnick.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.