nyxx
봇 및 애플리케이션용으로 디스코드 API를 완전하고 강력하며 효율적으로 래핑한 것입니다.
Dart용 디스코드 API 래퍼
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
A complete, robust and efficient wrapper around Discord's API for bots & applications.
To get started using nyxx, follow our getting started guide to write your first bot.
If you're already familiar with Discord's API, here's a quick example to get you started:
import 'package:nyxx/nyxx.dart';
void main() async {
final client = await Nyxx.connectGateway('<TOKEN>', GatewayIntents.allUnprivileged);
final botUser = await client.users.fetchCurrentUser();
client.onMessageCreate.listen((event) async {
if (event.mentions.contains(botUser)) {
await event.message.channel.sendMessage(MessageBuilder(
content: 'You mentioned me!',
referencedMessage: MessageReferenceBuilder.reply(messageId: event.message.id),
));
}
});
}
The API documentation for the latest stable version can be found on pub.
Tutorials and wiki articles are hosted here.
Our Discord server is where you can get help for any nyxx packages, as well as release announcements and discussions about the library.
Discord's API documentation details what nyxx implements & provides more detailed explanations of certain topics.
The unofficial guild for Discord Bot developers. To get help with nyxx check #dart_nyxx channel.
The dartdocs page will always have the documentation for the latest release.
Read the contributing document