mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-26 06:38:24 -04:00
forked!!
This commit is contained in:
parent
538b87062a
commit
ea7451bcdc
326 changed files with 24876 additions and 2280 deletions
30
src/equicordplugins/slap/index.ts
Normal file
30
src/equicordplugins/slap/index.ts
Normal file
|
@ -0,0 +1,30 @@
|
|||
/*
|
||||
* Vencord, a Discord client mod
|
||||
* Copyright (c) 2023 Vendicated, Korbo, and contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
import { ApplicationCommandInputType, ApplicationCommandOptionType } from "@api/Commands";
|
||||
import { Devs } from "@utils/constants";
|
||||
import definePlugin from "@utils/types";
|
||||
import { UserStore } from "@webpack/common";
|
||||
|
||||
export default definePlugin({
|
||||
name: "Slap",
|
||||
description: "Adds a command from the land before Discord.",
|
||||
authors: [Devs.Korbo],
|
||||
commands: [{
|
||||
inputType: ApplicationCommandInputType.BUILT_IN_TEXT,
|
||||
name: "slap",
|
||||
description: "Slap someone/something.",
|
||||
options: [{
|
||||
name: "victim",
|
||||
description: "Thing to slap",
|
||||
required: true,
|
||||
type: ApplicationCommandOptionType.STRING,
|
||||
}],
|
||||
execute: async ([{ value: victim }], ctx) => {
|
||||
return { content: `<@${UserStore.getCurrentUser().id}> slaps ${victim} around a bit with a large trout` };
|
||||
}
|
||||
}]
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue