Skip to content

Commit

Permalink
fix: an issue detecting discord hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
niekcandaele committed Jul 19, 2024
1 parent 5f23c78 commit 4a3c33e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/app-api/src/service/HookService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ export class HookService extends TakaroService<HookModel, HookOutputDTO, HookCre
if (!moduleInstallation.systemConfig.hooks[hook.name].enabled) return;

if (isDiscordMessageEvent(eventData)) {
const configuredChannel = moduleInstallation.systemConfig.hooks[`${hook.name} Discord channel ID`];
const configuredChannel = moduleInstallation.systemConfig.hooks[hook.name].discordChannelId;
if (eventData.channel.id !== configuredChannel) return;
}

Expand Down

0 comments on commit 4a3c33e

Please sign in to comment.