Skip to content

Commit

Permalink
fix: blacklisted and mention
Browse files Browse the repository at this point in the history
  • Loading branch information
louiszn committed Oct 21, 2024
1 parent 6bc74bc commit e4e786e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/commands/modules/TempVoice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ export default class extends Command {
.setTitle("Danh sách trắng:")
.setDescription(
userConfig.whitelisted.length
? userConfig.whitelisted.map((u) => `${u}`).join(", ")
? userConfig.whitelisted.map((u) => `<@${u}>`).join(", ")
: "Không có ai trong trong danh sách cả",
)
.setColor(config.colors.default);
Expand Down Expand Up @@ -828,7 +828,7 @@ export default class extends Command {

const target = options.getUser("user", true);

const bI = userConfig.whitelisted.indexOf(target.id);
const bI = userConfig.blacklisted.indexOf(target.id);

if (bI === -1) {
await interaction.reply({
Expand Down Expand Up @@ -886,7 +886,7 @@ export default class extends Command {
.setTitle("Danh sách đen:")
.setDescription(
userConfig.blacklisted.length
? userConfig.blacklisted.map((u) => `${u}`).join(", ")
? userConfig.blacklisted.map((u) => `<@${u}>`).join(", ")
: "Không có ai trong trong danh sách cả",
)
.setColor(config.colors.default);
Expand Down Expand Up @@ -1033,7 +1033,7 @@ export default class extends Command {
.setTitle("Danh sách trắng:")
.setDescription(
userConfig.managers.length
? userConfig.managers.map((u) => `${u}`).join(", ")
? userConfig.managers.map((u) => `<@${u}>`).join(", ")
: "Không có ai trong trong danh sách cả",
)
.setColor(config.colors.default);
Expand Down

0 comments on commit e4e786e

Please sign in to comment.