mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-19 15:30:00 +00:00
19 lines
636 B
TypeScript
19 lines
636 B
TypeScript
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
|
import { getSnowflakeInfoEmbed } from "../functions/getSnowflakeInfoEmbed";
|
|
import { utilityCmd } from "../types";
|
|
|
|
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, pluginData }) {
|
|
const embed = await getSnowflakeInfoEmbed(pluginData, args.id, false, message.author.id);
|
|
message.channel.send({ embeds: [embed] });
|
|
},
|
|
});
|