firebridge 6.2.13 copy "firebridge: ^6.2.13" to clipboard
firebridge: ^6.2.13 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
130
points
72
downloads

Documentation

Documentation
API reference

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

License

Apache-2.0 (license)

Dependencies

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

More

Packages that depend on firebridge