Skip to content

Commit 2a4f76c

Browse files
committed
fix: Fix simmon skill issue
1 parent 026cbdb commit 2a4f76c

1 file changed

Lines changed: 9 additions & 10 deletions

File tree

src/commands/moderation/suspicion.ts

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export async function run(
7878
if (!offerChannel) {
7979
return interaction.reply({
8080
content: "To nie jest kanał sprzedaży!",
81-
ephemeral: true,
81+
flags: 64,
8282
});
8383
}
8484
await interaction.channel.permissionsFor(user.id).add(PermissionsBitField.Flags.ViewChannel);
@@ -87,7 +87,7 @@ export async function run(
8787
}).then(msg => setTimeout(() => msg.delete().catch(() => null), 500));
8888
return interaction.reply({
8989
content: `Pomyślnie przywołano <@${user.id}>.`,
90-
ephemeral: true,
90+
flags: 64,
9191
});
9292
}
9393
case "info": {
@@ -100,7 +100,7 @@ export async function run(
100100
if (!suspicions) {
101101
return interaction.reply({
102102
content: "Ten użytkownik nie jest na liście podejrzanych.",
103-
ephemeral: true,
103+
flags: 64,
104104
});
105105
}
106106
return interaction.reply({
@@ -109,8 +109,7 @@ export async function run(
109109
new TextDisplayBuilder().setContent(`# Informacje o użytkowniku\nUżytkownik <@${user.id}> znajduje się na liście podejrzanych sprzedawców z powodu \`${suspicions.reason}\`.\n> Dodany <t:${Math.floor(suspicions.createdAt.getTime() / 1000)}:F> przez <@${suspicions.adminId}>`)
110110
)
111111
],
112-
flags: [MessageFlags.IsComponentsV2],
113-
ephemeral: true,
112+
flags: [MessageFlags.IsComponentsV2, MessageFlags.Ephemeral],
114113
});
115114
}
116115
case "add": {
@@ -123,7 +122,7 @@ export async function run(
123122
if (existing) {
124123
return interaction.reply({
125124
content: "Ten użytkownik jest już na liście podejrzanych.",
126-
ephemeral: true,
125+
flags: 64,
127126
});
128127
}
129128
const modal = new ModalBuilder()
@@ -159,7 +158,7 @@ export async function run(
159158
});
160159
return modalSubmit.reply({
161160
content: `Pomyślnie dodano <@${user.id}> do listy podejrzanych.`,
162-
ephemeral: true,
161+
flags: 64,
163162
});
164163
}
165164
case "remove": {
@@ -172,7 +171,7 @@ export async function run(
172171
if (!existing) {
173172
return interaction.reply({
174173
content: "Ten użytkownik nie jest na liście podejrzanych.",
175-
ephemeral: true,
174+
flags: 64,
176175
});
177176
}
178177
await client.prisma.suspicions.deleteMany({
@@ -182,13 +181,13 @@ export async function run(
182181
});
183182
return interaction.reply({
184183
content: `Pomyślnie usunięto <@${user.id}> z listy podejrzanych.`,
185-
ephemeral: true,
184+
flags: 64,
186185
});
187186
}
188187
default: {
189188
return interaction.reply({
190189
content: "Nieznana podkomenda.",
191-
ephemeral: true,
190+
flags: 64,
192191
});
193192
}
194193
}

0 commit comments

Comments
 (0)