Compare commits

..

No commits in common. "4735cce106f542fdbf20a633a89b328e05f7aa1d" and "cfd6664ea8fc9501278466513b19e8e3c6f47cb8" have entirely different histories.

View file

@ -1049,22 +1049,6 @@ lookupinvite.callback = async function (msg, line) {
};
hf.registerCommand(lookupinvite);
const inviteinfoInteraction = new InteractionCommand("inviteinfo");
inviteinfoInteraction.helpText = "Get information on an invite code";
inviteinfoInteraction.options.invite = {
name: "invite",
type: Constants.ApplicationCommandOptionTypes.STRING,
description: "Invite code to get info for",
required: true,
default: "",
};
inviteinfoInteraction.callback = async function (interaction) {
const invite = getOption(interaction, inviteinfoInteraction, "invite");
return lookupinvite.callback(interaction, invite);
};
hf.registerCommand(inviteinfoInteraction);
const snowflake = new Command("snowflake");
snowflake.category = CATEGORY;
snowflake.helpText = "Converts a snowflake ID into readable time.";
@ -1997,11 +1981,7 @@ guildinfo.callback = async function (msg, line) {
if (!line || line == "") {
if (!msg.guildID) return "Not in a guild.";
const __guild = msg.channel.guild ?? hf.bot.guilds.get(msg.guildID);
if (__guild) {
_guild = {source: "local", data: __guild};
} else {
_guild = await getGuild(msg.guildID);
}
if (__guild) _guild = {source: "local", data: __guild};
} else {
if (!SNOWFLAKE_REGEX.test(line)) return "Not a snowflake.";
const snowflake = line.match(SNOWFLAKE_REGEX)[1];