Add !slowmode command
This commit is contained in:
parent
2d8decdb4f
commit
5215dd0738
10 changed files with 122 additions and 2 deletions
21
backend/src/plugins/Utility/commands/SnowflakeInfoCmd.ts
Normal file
21
backend/src/plugins/Utility/commands/SnowflakeInfoCmd.ts
Normal file
|
@ -0,0 +1,21 @@
|
|||
import { utilityCmd } from "../types";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
||||
import { sendErrorMessage } from "../../../pluginUtils";
|
||||
import { getChannelInfoEmbed } from "../functions/getChannelInfoEmbed";
|
||||
import { getSnowflakeInfoEmbed } from "../functions/getSnowflakeInfoEmbed";
|
||||
|
||||
export const SnowflakeInfoCmd = utilityCmd({
|
||||
trigger: ["snowflake", "snowflakeinfo"],
|
||||
description: "Show information about a snowflake ID",
|
||||
usage: "!snowflake 534722016549404673",
|
||||
permission: "can_snowflake",
|
||||
|
||||
signature: {
|
||||
id: ct.anyId(),
|
||||
},
|
||||
|
||||
run({ message, args, pluginData }) {
|
||||
const embed = getSnowflakeInfoEmbed(pluginData, args.id);
|
||||
message.channel.createMessage({ embed });
|
||||
},
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue