diff --git a/src/commands/tenmans.ts b/src/commands/tenmans.ts index e528033..6745ffc 100644 --- a/src/commands/tenmans.ts +++ b/src/commands/tenmans.ts @@ -141,18 +141,18 @@ class VoteQueueButtonAction extends VoteQueueAction { const queueChannel = botConfig.queueMsgChannel as TextChannel; // Verify that a pingable role exists for 10 mans on this server - const roleId = await this.interaction.guild.roles + const tenmansRole = await this.interaction.guild.roles .fetch() .then((roles: Collection) => { for (const role of roles.values()) { if (role.name === "10 Mans") { - return role.id; + return role; } } }) .catch(console.error); - if (!roleId) { + if (!tenmansRole) { this.interaction.reply({ content: "My camera is destroyed - cannot find a 10 mans role on this server. Message an admin.", @@ -195,7 +195,7 @@ class VoteQueueButtonAction extends VoteQueueAction { }); await queueChannel.send({ - content: `<@${roleId}> that Radianite must be ours! A queue has been created!`, + content: `<@&${tenmansRole.id}> that Radianite must be ours! A queue has been created!`, }); } catch (e) { console.error(e);