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