Possible MOTD fix?

This commit is contained in:
Christopher Cookman 2024-07-02 21:04:16 -06:00
parent 56e1288f2e
commit bb21476057
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -120,7 +120,7 @@ client.on('interactionCreate', async interaction => {
},
{
name: "MOTD",
value: `\`${data.description?.split("\n")[0]}\`\n\`${data.description?.split("\n")[1]}\``
value: `\`${data.description?.split("\n")[0] || ""}\`\n\`${data.description?.split("\n")[1] || ""}\``
},
data.players.sample?.length > 0 ? {
name: "Players",