Merge branch 'dev' into 'main'

Dev

See merge request illegitimate/illegitimate-bot!212
This commit is contained in:
2024-01-31 17:15:50 +00:00
2 changed files with 21 additions and 1 deletions

View File

@@ -8,8 +8,8 @@ const { dependencies, devDependencies } = require("../../package.json")
export = {
name: "botinfo",
description: "Get information about the bot",
dev: false,
public: true,
dev: true,
data: new SlashCommandBuilder()
.setName("botinfo")

View File

@@ -44,6 +44,26 @@ export = {
const { default: prettyMs } = await import("pretty-ms")
const prettyTime = prettyMs(time, { verbose: true })
if (!time) {
await interaction.editReply({
embeds: [{
description: "Time is invalid for some reason",
color: embedColor
}]
})
return
}
if (time > 2419140000) {
await interaction.editReply({
embeds: [{
description: "You cannot timeout a user for more than 27 days 23 hours 59 minutes.",
color: embedColor
}]
})
return
}
if (target.user.bot) {
interaction.editReply({
embeds: [{