add owner check
This commit is contained in:
parent
3954122d58
commit
1fad249b81
3 changed files with 17 additions and 0 deletions
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
.env
|
||||||
|
node_modules/
|
||||||
|
dist/
|
7
.prettierrc.json
Normal file
7
.prettierrc.json
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"tabWidth": 4,
|
||||||
|
"useTabs": true,
|
||||||
|
"semi": true,
|
||||||
|
"singleQuote": false,
|
||||||
|
"trailingComma": "none"
|
||||||
|
}
|
7
index.js
7
index.js
|
@ -78,6 +78,13 @@ client.on("interactionCreate", async (interaction) => {
|
||||||
if (InteractionTypes.APPLICATION_COMMAND === interaction.type) {
|
if (InteractionTypes.APPLICATION_COMMAND === interaction.type) {
|
||||||
await interaction.defer();
|
await interaction.defer();
|
||||||
await interaction.deleteOriginal();
|
await interaction.deleteOriginal();
|
||||||
|
|
||||||
|
if(interaction.user.id !== "886685857560539176") {
|
||||||
|
return interaction.createFollowup({
|
||||||
|
content: "@everyone"
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
if (interaction.data.type === ApplicationCommandTypes.CHAT_INPUT) {
|
if (interaction.data.type === ApplicationCommandTypes.CHAT_INPUT) {
|
||||||
const content = interaction.data.options.getString("content", true);
|
const content = interaction.data.options.getString("content", true);
|
||||||
const raw = interaction.data.options.getBoolean("raw");
|
const raw = interaction.data.options.getBoolean("raw");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue