uhxx 0.1.0
uhxx: ^0.1.0 copied to clipboard
A complete, robust and efficient wrapper around Discord's API for bots & applications.
uhxx #
#
A complete, robust and efficient wrapper around Discord's API for bots & applications.
To get started using uhxx, 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:uhxx/uhxx.dart';
void main() async {
final client = await Uhxx.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 uhxx packages #
- uhxx_commands: A command framework for handling both simple & complex commands.
- uhxx_extensions: Pagination, emoji utilities and other miscellaneous helpers for developing bots using uhxx.
- uhxx_lavalink: Lavalink support for playing audio in voice channels.
More examples #
Additional documentation & help #
The API documentation for the latest stable version can be found on pub.
Discord API docs #
Discord's API documentation details what uhxx implements & provides more detailed explanations of certain topics.
Credits #
- Thanks to Hackzzila's for nyx, the original project Nyxx was forked from.
- Thanks ti for nyxx, the project uhxx is based on.