Skip to content

Commit ab9de03

Browse files
author
xyzjesper
committed
Added ?? t ocheck if guild.description is null
1 parent b6c51c7 commit ab9de03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/modules/vanity/modals/vanity-create-modal.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ export default {
5858
VanityId: uuid
5959
},
6060
create: {
61-
Title: interaction.guild.name,
62-
Description: interaction.guild.description,
61+
Title: interaction.guild.name ?? "N/A",
62+
Description: interaction.guild.description ?? "N/A",
6363
Color: "#282b30",
6464
}
6565
}

0 commit comments

Comments
 (0)