fix: only error in thread

This commit is contained in:
Saahil 2025-01-03 21:04:42 -05:00
parent 7a60bb0c82
commit da61ad6166
No known key found for this signature in database
GPG key ID: 8A8B64515254CFC6

View file

@ -28,13 +28,16 @@ export default class UUID implements Command {
//@ts-ignore
!event.text.toLowerCase().endsWith("```")
) {
//@ts-ignore
if(!event.thread_ts) {
await app.client.chat.postEphemeral({
text: `:x: You need to use code blocks for this command.`,
//@ts-ignore
channel: event.channel,
//@ts-ignore
user: event.user,
});
text: `:x: You need to use code blocks for this command.`,
//@ts-ignore
channel: event.channel,
//@ts-ignore
user: event.user,
});
}
return;
}
//@ts-ignore