Cooldowns
Cooldown Type
Description
Last updated
Last updated
const { CommandType, CooldownTypes } = require("wokcommands");
module.exports = {
description: "Ping pong command",
type: CommandType.BOTH,
cooldowns: {
type: CooldownTypes.perUser,
duration: "1 d",
},
callback: () => {
return {
content: "Pong!",
};
},
};import { CommandObject, CommandType, CooldownTypes } from "wokcommands";
export default {
description: "Ping pong command",
type: CommandType.BOTH,
cooldowns: {
type: CooldownTypes.perUser,
duration: "1 d",
},
callback: () => {
return {
content: "Pong!",
};
},
} as CommandObject;