diff --git a/src/managers/VoteManager.ts b/src/managers/VoteManager.ts index 0e613cb2..ae41a8f6 100644 --- a/src/managers/VoteManager.ts +++ b/src/managers/VoteManager.ts @@ -4,7 +4,7 @@ import { WebhookPayload } from '@top-gg/sdk'; import { stripIndents } from 'common-tags'; import { ClusterManager } from 'discord-hybrid-sharding'; import { WebhookClient, userMention, EmbedBuilder } from 'discord.js'; -import { badgeEmojis, LINKS } from '../utils/Constants.js'; +import { badgeEmojis, LINKS, SUPPORT_SERVER_ID, VOTER_ROLE_ID } from '../utils/Constants.js'; import { getOrdinalSuffix, getUsername, modifyUserRole } from '../utils/Utils.js'; import { EventEmitter } from 'events'; @@ -95,15 +95,9 @@ export class VoteManager extends EventEmitter { } async addVoterRole(userId: string) { - await modifyUserRole(this.cluster, 'add', userId, '853116027588051022', '1201369361391300719'); + await modifyUserRole(this.cluster, 'add', userId, SUPPORT_SERVER_ID, VOTER_ROLE_ID); } async removeVoterRole(userId: string) { - await modifyUserRole( - this.cluster, - 'remove', - userId, - '853116027588051022', - '1201369361391300719', - ); + await modifyUserRole(this.cluster, 'remove', userId, SUPPORT_SERVER_ID, VOTER_ROLE_ID); } } diff --git a/src/utils/Constants.ts b/src/utils/Constants.ts index 1fa972d5..6106e696 100644 --- a/src/utils/Constants.ts +++ b/src/utils/Constants.ts @@ -17,6 +17,8 @@ export const isDevBuild = process.env.NODE_ENV === 'development'; export const CLIENT_ID = isDevBuild ? '798748015435055134' : '769921109209907241'; export const SUPPORT_SERVER_ID = '770256165300338709'; +export const VOTER_ROLE_ID = '985153241727770655'; + // Regexp export const REGEX = {