diff --git a/src/commands/fun/hug.ts b/src/commands/fun/hug.ts index e1efe95..35bea0b 100644 --- a/src/commands/fun/hug.ts +++ b/src/commands/fun/hug.ts @@ -27,6 +27,7 @@ export class HugCommand extends Command { ...options, name: 'hug', description: 'Hug a user', + preconditions: ['PatreonOnly'], }); } diff --git a/src/preconditions/PatreonOnly.ts b/src/preconditions/PatreonOnly.ts index d1c4453..31c78ca 100644 --- a/src/preconditions/PatreonOnly.ts +++ b/src/preconditions/PatreonOnly.ts @@ -39,7 +39,7 @@ export class PatreonOnlyPrecondition extends AllFlowsPrecondition { } private async checkPatreon(user: GuildMember) { - return user.roles.cache.has(IDs.roles.patron) + return user.roles.cache.has(IDs.roles.patron) || user.roles.cache.has(IDs.roles.patreon) ? this.ok() : this.error({ message: 'Only Patreon members can run this command!' }); } diff --git a/src/utils/ids.ts b/src/utils/ids.ts index 9ea9830..6f27e0d 100644 --- a/src/utils/ids.ts +++ b/src/utils/ids.ts @@ -46,6 +46,7 @@ const IDs = { verifier: '871802735031373856', }, patron: '765370219207852055', + patreon: '993848684640997406', }, channels: { staff: {