firebridge 6.2.13
firebridge: ^6.2.13 copied to clipboard
An experimental package to use the Discord bot API with user accounts, built off of Nyxx.
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);
}
}