chore: merge branch dev to main #194

Merged
Anri merged 5 commits from dev into main 2024-10-08 20:55:16 +02:00
Showing only changes of commit fc189ab552 - Show all commits

View file

@ -6,10 +6,12 @@ export default {
data: {
name: getFilename(__filename),
},
interaction: async (interaction: ModalSubmitInteraction, client: Client) =>
newReminder(client, interaction.fields.fields.get("reminderGUI-time")!.value, {
interaction: async (interaction: ModalSubmitInteraction, client: Client) => {
const message = interaction.fields.fields.get("reminderGUI-message")?.value;
return newReminder(client, interaction.fields.fields.get("reminderGUI-time")!.value, {
locale: interaction.locale,
message: interaction.fields.fields.get("reminderGUI-message")?.value ?? null,
message: message ? (message.length > 0 ? message : null) : null,
createdAt: interaction.createdAt.getTime(),
channelId: interaction.channelId,
userId: interaction.user.id,
@ -19,5 +21,6 @@ export default {
content: msg as string,
ephemeral: true,
}),
),
);
},
};