refactor: replace entitledUsers owner gate with naomiId
Node.js CI / CI (pull_request) Failing after 1m5s
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m48s

This commit is contained in:
2026-03-23 15:08:37 -07:00
committed by Naomi Carrigan
parent 1c4bc9ca03
commit b5d29025b3
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -4,7 +4,7 @@
* @author Naomi Carrigan
*/
import { entitledGuilds, entitledUsers } from "../config/entitlements.js";
import { entitledGuilds, naomiId } from "../config/entitlements.js";
import type { Client, Guild, User } from "discord.js";
/**
@@ -17,7 +17,7 @@ const checkUserEntitlement = async(
hikari: Client,
user: User,
): Promise<boolean> => {
if (entitledUsers.includes(user.id)) {
if (user.id === naomiId) {
return true;
}
const entitlements = await hikari.application?.entitlements.fetch({