Can the event command be used in private messages? #481
revanapriyandi19
started this conversation in
General
Replies: 1 comment 1 reply
-
|
yes, just make sure the filename end with _ and you can filter the message import type { Event } from "../../types/command"
export default <Event>{
execute: async ({ aruga, message }) => {
if (!message.isGroupMsg && !message.fromMe) {
await aruga.sendMessage(message.from, {
react: {
text: "⏳",
key: message.key
}
})
}
}
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
import type { Event } from "../../types/command"
export default {
execute: async ({ client, message }) => {
if (!message.fromMe) {
return await client.sendMessage(message.from, {
react: {
text: "⏳",
key: message.key
}
})
}
}
}
Beta Was this translation helpful? Give feedback.
All reactions