Alter networking to include authorization bot header, and add initial sticker calls
This commit is contained in:
parent
eae1f391de
commit
6079fa9a01
6 changed files with 95 additions and 6 deletions
|
@ -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}"});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue