nyxx_interactions 2.0.0-rc.13 copy "nyxx_interactions: ^2.0.0-rc.13" to clipboard
nyxx_interactions: ^2.0.0-rc.13 copied to clipboard

outdated

Nyxx Interactions Module. Discord library for Dart. Simple, robust framework for creating discord bots for Dart language.

example/example.dart

import "package:nyxx/nyxx.dart";
import "package:nyxx_interactions/interactions.dart";

void main() {
  final bot = Nyxx("<TOKEN>", GatewayIntents.allUnprivileged);
  Interactions(bot)
    ..registerSlashCommand(
        SlashCommandBuilder("itest", "This is test command", [
          CommandOptionBuilder(CommandOptionType.subCommand, "subtest", "This is sub test")
            ..registerHandler((event) => event.respond(MessageBuilder.content("This is example command")))
        ], guild: 302360552993456135.toSnowflake())
    )..syncOnReady();
}
9
likes
0
pub points
52%
popularity

Publisher

verified publisherl7ssha.xyz

Nyxx Interactions Module. Discord library for Dart. Simple, robust framework for creating discord bots for Dart language.

Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (license)

Dependencies

logging, nyxx

More

Packages that depend on nyxx_interactions