mirror of
https://github.com/yawaflua/Flask-Discord.git
synced 2025-12-10 04:19:31 +02:00
25 lines
756 B
Python
25 lines
756 B
Python
API_BASE_URL = "https://discordapp.com/api"
|
|
|
|
AUTHORIZATION_BASE_URL = API_BASE_URL + "/oauth2/authorize"
|
|
TOKEN_URL = API_BASE_URL + "/oauth2/token"
|
|
|
|
|
|
ALL_SCOPES = [
|
|
"bot", "connections", "email", "identify", "guilds", "guilds.join",
|
|
"gdm.join", "messages.read", "rpc", "rpc.api", "rpc.notifications.read", "webhook.incoming",
|
|
]
|
|
|
|
DEFAULT_SCOPES = [
|
|
"identify", "email", "guilds", "guilds.join"
|
|
]
|
|
|
|
|
|
IMAGE_BASE_URL = "https://cdn.discordapp.com/"
|
|
IMAGE_FORMAT = "png"
|
|
ANIMATED_IMAGE_FORMAT = "gif"
|
|
USER_AVATAR_BASE_URL = IMAGE_BASE_URL + "avatars/{user_id}/{avatar_hash}.{format}"
|
|
GUILD_ICON_BASE_URL = IMAGE_BASE_URL + "icons/{guild_id}/{icon_hash}.png"
|
|
|
|
|
|
# TODO: Prefix configs with DISCORD_ to avoid users overriding it with their own configs.
|