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