Alter networking to include authorization bot header, and add initial sticker calls

This commit is contained in:
zontreck 2024-07-11 02:44:54 -07:00
parent eae1f391de
commit 6079fa9a01
6 changed files with 95 additions and 6 deletions

View file

@ -1,3 +1,5 @@
import 'package:dio/dio.dart';
/// Contains currently supported endpoints and URLs.
class DiscordEndpoints {
/// Currently this is set to 10
@ -8,4 +10,12 @@ class DiscordEndpoints {
static const ME = "/@me";
static const Applications = "/applications";
static const Users = "/users";
static const Stickers = "/stickers";
}
class DiscordSessionSettings {
static String BOT_TOKEN = "";
static BaseOptions get getOptions => BaseOptions(
headers: {"Authorization": "Bot ${DiscordSessionSettings.BOT_TOKEN}"});
}