Skip to content

Instantly share code, notes, and snippets.

@Altreus
Last active February 16, 2020 21:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Altreus/7ac355c32bc12a518ddee13426826cc3 to your computer and use it in GitHub Desktop.
Save Altreus/7ac355c32bc12a518ddee13426826cc3 to your computer and use it in GitHub Desktop.
$ raku -Ilib -MAPI::Discord
To exit type 'exit' or '^D'
> my $discord = API::Discord.new(:token('****'))
API::Discord.new(version => 6, host => "gateway.discord.gg", token => "****", shard => 0, shards-max => 1, user => Any, channels => {}, guilds => {})
> $discord.connect;
Promise.new(scheduler => ThreadPoolScheduler.new(initial_threads => 0, max_threads => 64, uncaught_handler => Callable), status => PromiseStatus::Planned)
> « ♥
» ♥
{
bitrate => 64000.Int,
guild_id => "502109774901542924".Str,
name => "General Channels".Str,
permission_overwrites => [ ],
position => 1.Int,
type => 4.Int,
user_limit => 0.Int,
}
{bitrate => 64000, guild_id => 502109774901542924, name => General Channels, permission_overwrites => [], position => 1, type => 4, user_limit => 0}
API::Discord::Channel::ButReal :: (
$!api => (Nil),
$!application-id => (Nil),
$!bitrate => 64000.Int,
$!fetch-message-promise => Promise :: (
<snip>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment