discord_bot_flutter 1.1.0 copy "discord_bot_flutter: ^1.1.0" to clipboard
discord_bot_flutter: ^1.1.0 copied to clipboard

A lightweight Dart package to interact with the Discord Bot APIs.

example/discord_bot_flutter_example.dart

import 'package:discord_bot_flutter/discord_bot_flutter.dart';
import 'package:discord_bot_flutter/src/models/models.dart';

void main() async {
  final awesome = DiscordBotFlutter(
    botToken: '<bot-token>',
  );
  await awesome.sendMessageAsEmbed(
    message: 'A user named John Doe has joined the channel :xD',
    channelID: '<channel-id>',
    embed: [
      const EmbedModel(
        title: 'Hello',
        description: 'This is a test embed',
        color: 0x5865F2,
      ),
    ],
  );
}
0
likes
160
points
128
downloads

Documentation

API reference

Publisher

verified publishershahjahanmirza.dev

Weekly Downloads

A lightweight Dart package to interact with the Discord Bot APIs.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

dio, freezed_annotation, json_annotation, mocktail, very_good_analysis

More

Packages that depend on discord_bot_flutter