1
1
mirror of https://github.com/Burn-E99/GroupUp.git synced 2026-01-06 19:37:54 -05:00

Update ready.ts, start work on notification system

This commit is contained in:
Ean Milligan (Bastion)
2023-04-28 15:53:17 -04:00
parent a4362c9bb3
commit 69486b5595
6 changed files with 69 additions and 24 deletions

View File

@ -33,7 +33,7 @@ const execute = async (bot: Bot, interaction: Interaction) => {
});
bot.helpers.editMessage(evtChannelId, evtMessageId, { embeds: [interaction.message.embeds[0]] }).then(() => {
dbClient.execute(queries.updateEvent, [eventTime, evtChannelId, evtMessageId]).then(() => {
dbClient.execute(queries.updateEventTime, [eventTime, evtChannelId, evtMessageId]).then(() => {
// Acknowledge user so discord doesn't get annoyed
bot.helpers.sendInteractionResponse(interaction.id, interaction.token, {
type: InteractionResponseTypes.ChannelMessageWithSource,