mirror of
https://github.com/System-End/slack-end.git
synced 2026-04-19 22:05:10 +00:00
fix: only error in thread
This commit is contained in:
parent
7a60bb0c82
commit
da61ad6166
1 changed files with 9 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue