2020-08-09 17:28:21 +03:00
|
|
|
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
|
|
|
import { getSnowflakeInfoEmbed } from "../functions/getSnowflakeInfoEmbed";
|
2021-06-06 23:51:32 +02:00
|
|
|
import { utilityCmd } from "../types";
|
2020-08-09 17:28:21 +03:00
|
|
|
|
|
|
|
export const SnowflakeInfoCmd = utilityCmd({
|
|
|
|
trigger: ["snowflake", "snowflakeinfo"],
|
|
|
|
description: "Show information about a snowflake ID",
|
|
|
|
usage: "!snowflake 534722016549404673",
|
|
|
|
permission: "can_snowflake",
|
|
|
|
|
|
|
|
signature: {
|
|
|
|
id: ct.anyId(),
|
|
|
|
},
|
|
|
|
|
2020-08-19 00:19:12 +03:00
|
|
|
async run({ message, args, pluginData }) {
|
|
|
|
const embed = await getSnowflakeInfoEmbed(pluginData, args.id, false, message.author.id);
|
2021-06-30 04:56:56 +02:00
|
|
|
message.channel.send({ embeds: [embed] });
|
2020-08-09 17:28:21 +03:00
|
|
|
},
|
|
|
|
});
|