nyxx 6.7.0  nyxx: ^6.7.0 copied to clipboard
nyxx: ^6.7.0 copied to clipboard
A complete, robust and efficient wrapper around Discord's API for bots & applications.
import 'dart:io';
import 'package:nyxx/nyxx.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}!');
  }
}