Discord
This page documents the discord webhook configuration of Zipline.
DISCORD_URL
The webhook URL, if having trouble getting one, visit this guide. This value can be overriden with the DISCORD_<UPLOAD/SHORTEN>_URL
variable.
DISCORD_URL=https://discord.com/api/webhooks/x/x
DISCORD_USERNAME
An optional field that defaults to "Zipline", but can be customized to your liking. This will be the username of the webhook. This value can be overriden with the DISCORD_<UPLOAD/SHORTEN>_USERNAME
variable.
DISCORD_USERNAME=Zipline
DISCORD_AVATAR_URL
An optional field that defaults to the Zipline logo, but can be customized to your liking. This will be the avatar of the webhook. This value can be overriden with the DISCORD_<UPLOAD/SHORTEN>_AVATAR_URL
variable.
DISCORD_AVATAR_URL=https://example.com/something.png
Body
The variable can be either DISCORD_UPLOAD_something
or DISCORD_SHORTEN_something
. UPLOAD will be used when a file is uploaded and SHORTEN will be used when a url is shortened.
DISCORD_<UPLOAD/SHORTEN>_URL
This will override the global value for DISCORD_URL
for upload/shorten webhook calls. This is optional, and the global value will be used if this isn't provided.
DISCORD_UPLOAD_URL=https://discord.com/api/webhooks/x2/x2DISCORD_SHORTEN_URL=https://discord.com/api/webhooks/x2/x2
DISCORD_<UPLOAD/SHORTEN>_USERNAME
This will override the global value for DISCORD_USERNAME
for upload/shorten webhook calls. This is optional, and the global value will be used if this isn't provided.
DISCORD_UPLOAD_USERNAME="Zipline Uploads"DISCORD_SHORTEN_USERNAME="Zipline URLs"
DISCORD_<UPLOAD/SHORTEN>_AVATAR_URL
This will override the global value for DISCORD_AVATAR_URL
for upload/shorten webhook calls. This is optional, and the global value will be used if this isn't provided.
DISCORD_UPLOAD_AVATAR_URL=https://example.com/uploadsavatar.pngDISCORD_SHORTEN_AVATAR_URL=https://example.com/shortensavatar.png
DISCORD_<UPLOAD/SHORTEN>_CONTENT
The message content of the webhook, not required if using embed.
DISCORD_UPLOAD_CONTENT="something"DISCORD_SHORTEN_CONTENT="something"
DISCORD_<UPLOAD/SHORTEN>_EMBED_TITLE
The title of the embed, not required.
DISCORD_UPLOAD_EMBED_TITLE="something"DISCORD_SHORTEN_EMBED_TITLE="something"
DISCORD_<UPLOAD/SHORTEN>_EMBED_DESCRIPTION
The description of the embed, not required.
DISCORD_UPLOAD_EMBED_DESCRIPTION="something"DISCORD_SHORTEN_EMBED_DESCRIPTION="something"
DISCORD_<UPLOAD/SHORTEN>_EMBED_FOOTER
The footer of the embed, not required.
DISCORD_UPLOAD_EMBED_FOOTER="something"DISCORD_SHORTEN_EMBED_FOOTER="something"
DISCORD_<UPLOAD/SHORTEN>_EMBED_COLOR
The color of the embed, not required.
DISCORD_UPLOAD_EMBED_COLOR=0x1bebebDISCORD_SHORTEN_EMBED_COLOR=0x1bebeb
DISCORD_<UPLOAD/SHORTEN>_EMBED_IMAGE
Whether to display an image (if the file is an image) in the embed's image field, not required.
DISCORD_UPLOAD_EMBED_IMAGE=trueDISCORD_SHORTEN_EMBED_IMAGE=true
DISCORD_<UPLOAD/SHORTEN>_EMBED_THUMBNAIL
Whether to display a thumbnail (if the file is an image) in the embed's thumbnail field, not required.
DISCORD_UPLOAD_EMBED_THUMBNAIL=trueDISCORD_SHORTEN_EMBED_THUMBNAIL=true
DISCORD_<UPLOAD/SHORTEN>_EMBED_TIMESTAMP
Whether to display a timestamp in the embed's timestamp field, not required.
DISCORD_UPLOAD_EMBED_TIMESTAMP=trueDISCORD_SHORTEN_EMBED_TIMESTAMP=true