搜尋套件、儲存庫與 APP 分類

套件詳情v6.9.1

nyxx

一個完整、強大且高效的核心包,用於機器人與應用程式之 Discord API。

AndroidiOSmacOSWindowsLinux
近 30 天下載
1850
喜歡數
109
Pub 分數
140

安裝套件

flutter pub add nyxx

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

Nyxx 是一個全面、高效且穩健的 Dart 庫,提供對 Discord API 的完整存取,以建構機器人與應用程式。設計時著重於效能與可靠性,支援即時互動、事件處理,以及管理伺服器、使用者與訊息的豐富功能。此套件適合希望在多個平台建立功能豐富的 Discord 整合之開發者。其乾淨的 API 與活躍的社群支援,使其成為初學者與資深開發者的強大選擇。

適用情境

  • 建構 Discord 機器人
  • 建立即時聊天應用
  • 將 Discord 集成到多平台應用中
  • 管理伺服器自動化
  • 處理訊息事件和反應

主要特色

  • 完整的 Discord API 支援
  • 即時事件串流
  • 跨平台支援
  • 高效的資源使用
  • 強大的錯誤處理
  • 模組化設計

適合對象

  • Discord機器人開發者
  • 多平台應用程式創建者
  • 即時通訊專案
  • 伺服器自動化工具
  • 面向 Discord 集成的 Dart/Flutter 開發者

使用建議

  • 需要了解 Discord API
  • 可能需要額外的設定來完成驗證
  • 依賴於穩定的網路連接
  • 高級功能的學習曲線
  • 不適用於面向用戶的 Discord 客戶端

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

nyxx

Discord pub documentation

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),
      ));
    }
  });
}

Other nyxx packages

  • nyxx_commands: A command framework for handling both simple & complex commands.
  • nyxx_extensions: Pagination, emoji utilities and other miscellaneous helpers for developing bots using nyxx.
  • nyxx_lavalink: Lavalink support for playing audio in voice channels.

More examples

  • More examples can be found in our GitHub repository here.
  • Running on Dart is a complete example of a bot written with nyxx.

Additional documentation & help

The API documentation for the latest stable version can be found on pub.

Docs and wiki

Tutorials and wiki articles are hosted here.

Official nyxx Discord server

Our Discord server is where you can get help for any nyxx packages, as well as release announcements and discussions about the library.

Discord API docs

Discord's API documentation details what nyxx implements & provides more detailed explanations of certain topics.

Discord API Server

The unofficial guild for Discord Bot developers. To get help with nyxx check #dart_nyxx channel.

Pub.dev docs

The dartdocs page will always have the documentation for the latest release.

Contributing to Nyxx

Read the contributing document

Credits

  • Thanks to Hackzzila's for nyx, the original project nyxx was forked from.

所屬分類

依賴

依賴清單 9 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。