generated from nhcarrigan/template
refactor: replace entitledUsers owner gate with naomiId
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user