firebridge 6.2.8 copy "firebridge: ^6.2.8" to clipboard
firebridge: ^6.2.8 copied to clipboard

An experimental package to use the Discord bot API with user accounts, built off of Nyxx.

example/example.dart

import 'dart:io';

import 'package:firebridge/firebridge.dart';

void main() async {
  final client = await Nyxx.connectGateway(
    Platform.environment['TOKEN']!,
    GatewayIntents.allUnprivileged,
    options: GatewayClientOptions(plugins: [logging, cliIntegration]),
  );

  await for (final MessageCreateEvent(:message) in client.onMessageCreate) {
    print('${message.id} sent by ${message.author.id} in ${message.channelId}!');

    final channel = await client.channels.fetch(message.channelId);
    print(channel);
  }
}
0
likes
0
points
17
downloads

Publisher

verified publisheropenbonfire.dev

Weekly Downloads

An experimental package to use the Discord bot API with user accounts, built off of Nyxx.

Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (license)

Dependencies

eterl, http, logging, meta, oauth2, path, retry, runtime_type

More

Packages that depend on firebridge