Skip to content

Commit

Permalink
Mention workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
Seefaaa committed Sep 23, 2024
1 parent 223fc81 commit 4e180d3
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/commands/api/verify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ const logVerify = async (client: Client, message: string) => {
config.log.verifyChannel
)) as TextChannel;

verifyLogChannel.send(message);
const sentMessage = await verifyLogChannel.send(
message.replaceAll('@', '\\@')
);

await sentMessage.edit(message);
};

export class VerifyCommand implements Command {
Expand Down Expand Up @@ -51,7 +55,7 @@ export class VerifyCommand implements Command {

logVerify(
interaction.client,
`@silent ${user} hesabını \`${ckey}\` adlı BYOND hesabına bağladı.`
`${user} hesabını \`${ckey}\` adlı BYOND hesabına bağladı.`
);
} else if (statusCode === 404) {
if (!verifyRegex.test(code)) {
Expand Down Expand Up @@ -134,7 +138,7 @@ export class UnverifyCommand implements Command {

logVerify(
interaction.client,
`@silent ${user} adlı Discord hesabı ile \`${ckey}\` adlı BYOND hesabının bağlantısı ${interaction.user} tarafından kaldırıldı.`
`${user} adlı Discord hesabı ile \`${ckey}\` adlı BYOND hesabının bağlantısı ${interaction.user} tarafından kaldırıldı.`
);
} else if (statusCode === 409) {
interaction.reply('Hesap zaten bağlı değil.');
Expand Down Expand Up @@ -163,7 +167,7 @@ export class UnverifyCommand implements Command {

logVerify(
interaction.client,
`@silent ${user} adlı Discord hesabı ile \`${ckey}\` adlı BYOND hesabının bağlantısı ${interaction.user} tarafından kaldırıldı.`
`${user} adlı Discord hesabı ile \`${ckey}\` adlı BYOND hesabının bağlantısı ${interaction.user} tarafından kaldırıldı.`
);
} else if (statusCode === 404) {
interaction.reply('Hesap bulunamadı.');
Expand Down Expand Up @@ -215,7 +219,7 @@ export class ForceVerifyCommand implements Command {

logVerify(
interaction.client,
`@silent ${user} adlı Discord hesabı ile \`${ckey}\` adlı BYOND hesabı ${interaction.user} tarafından bağlandı.`
`${user} adlı Discord hesabı ile \`${ckey}\` adlı BYOND hesabı ${interaction.user} tarafından bağlandı.`
);
} else if (statusCode === 404) {
interaction.reply('Oyuncu bulunamadı.');
Expand Down

0 comments on commit 4e180d3

Please sign in to comment.