Skip to content
This repository was archived by the owner on Oct 9, 2025. It is now read-only.

Commit 2510ffd

Browse files
committed
fix: Fixed naming convention
1 parent 1a1791c commit 2510ffd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Utils/functions/utils.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,17 +171,17 @@ export function toHuman(milliseconds: number): string {
171171
*/
172172
export async function checkIfStaff(client: discord.Client, user: discord.GuildMember | discord.User, onlyDeveloper = false) {
173173
try {
174-
const staff = '800698916995203104';
175-
const developers = '770256273488347176';
174+
const staffRole = '800698916995203104';
175+
const developerRole = '770256273488347176';
176176

177-
const allowedRoles = [staff, developers];
177+
const allowedRoles = [staffRole, developerRole];
178178

179179
const guild = await client.guilds.fetch('770256165300338709');
180180
const member = await guild.members.fetch(user);
181181
const roles = member.roles.cache;
182182

183183
const isStaff = roles?.hasAny(...allowedRoles);
184-
const isDev = roles?.has(developers);
184+
const isDev = roles?.has(developerRole);
185185

186186
if (onlyDeveloper && isDev) return true;
187187
else if (isStaff) return true;

0 commit comments

Comments
 (0)