This repository was archived by the owner on Feb 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Interaction
xlyr.on edited this page Jan 22, 2021
·
7 revisions
new Slash.Interaction(client, interaction)
Parameter | Type | Description | required |
---|---|---|---|
client | Discord Client | a discord client | true |
interaction | Slash Interaction | a slash interaction | true |
Parameter | Type | Description | required |
---|---|---|---|
content | string | the string you want to send | true |
Parameter | Type | Description | required |
---|---|---|---|
content | string | the string you want to send | true |
Parameter | Type | Description | required |
---|---|---|---|
embed | Discord Embed | the embed you want to send | true |
commandTwo.js
module.exports = new Slash.Command({
name: 'invisible',
description: 'sends a hello world message visible to user only',
permissions: ["SEND_MESSAGES"],
execute(interaction) {
interaction.sendEphemeral("Hello World")
}
})