3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-07-08 03:27:20 +00:00
zeppelin/backend/src/plugins/Utility/commands/SnowflakeInfoCmd.ts
2024-04-09 20:57:18 +03:00

19 lines
602 B
TypeScript

import { commandTypeHelpers as ct } from "../../../commandTypes.js";
import { getSnowflakeInfoEmbed } from "../functions/getSnowflakeInfoEmbed.js";
import { utilityCmd } from "../types.js";
export const SnowflakeInfoCmd = utilityCmd({
trigger: ["snowflake", "snowflakeinfo"],
description: "Show information about a snowflake ID",
usage: "!snowflake 534722016549404673",
permission: "can_snowflake",
signature: {
id: ct.anyId(),
},
async run({ message, args }) {
const embed = await getSnowflakeInfoEmbed(args.id, false);
message.channel.send({ embeds: [embed] });
},
});