initialize attachmentImages ahead of time, to be reused

This commit is contained in:
2023-06-08 19:34:48 +02:00
parent 0ba867b23a
commit 0aef525994
3 changed files with 19 additions and 13 deletions

View File

@ -0,0 +1,12 @@
import { AttachmentBuilder } from "discord.js"
const splashScreen = new AttachmentBuilder('./server/assets/images/set_splashscreen.png')
const startScreen = new AttachmentBuilder('./server/assets/images/start_screen.png')
const serverConnection = new AttachmentBuilder('./server/assets/images/server_verbindung.png')
const accountChoice = new AttachmentBuilder('./server/assets/images/auswahl_anmeldung.png')
const loginScreen = new AttachmentBuilder('./server/assets/images/login_screen.png')
const overview = new AttachmentBuilder('./server/assets/images/jellyfin_ubersicht.png')
const joingroup = new AttachmentBuilder('./server/assets/images/gruppe_beitreten.png')
const resume = new AttachmentBuilder('./server/assets/images/wiedergabe_fortsetzen.png')
const leavegroup = new AttachmentBuilder('./server/assets/images/gruppe_verlassen.png')
export const attachedImages = [splashScreen, startScreen, serverConnection, accountChoice, loginScreen, overview, resume, leavegroup, joingroup]