Updated env
This commit is contained in:
@@ -24,7 +24,7 @@ export default {
|
||||
const user = (interaction.options.getUser("user") || interaction.user) as User
|
||||
let size: number
|
||||
|
||||
if (user.id === env.prod.dev) {
|
||||
if (user.id === env.prod.DEV) {
|
||||
size = Math.floor(Math.random() * 30) + 1
|
||||
} else {
|
||||
size = Math.floor(Math.random() * 10) + 1
|
||||
|
||||
@@ -6,7 +6,7 @@ import env from "~/utils/Env.js"
|
||||
const cmd: SubCommand = async (interaction) => {
|
||||
await interaction.deferReply()
|
||||
|
||||
if (interaction.user.id !== env.prod.dev) {
|
||||
if (interaction.user.id !== env.prod.DEV) {
|
||||
await interaction.editReply("You are not allowed to use this command.")
|
||||
return
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ const cmd: SubCommand = async (interaction) => {
|
||||
|
||||
const discordMember = interaction.member as GuildMember
|
||||
|
||||
if (discordMember.user.id !== env.prod.dev) {
|
||||
if (discordMember.user.id !== env.prod.DEV) {
|
||||
await interaction.editReply({
|
||||
embeds: [{
|
||||
description: "You do not have permission to use this command.",
|
||||
|
||||
@@ -24,7 +24,7 @@ const cmd: SubCommand = async (interaction) => {
|
||||
return
|
||||
}
|
||||
|
||||
if (discordMember.user.id !== env.prod.dev) {
|
||||
if (discordMember.user.id !== env.prod.DEV) {
|
||||
await interaction.editReply({
|
||||
embeds: [{
|
||||
description: "You do not have permission to use this command.",
|
||||
|
||||
@@ -41,6 +41,8 @@ export default {
|
||||
const timeString = interaction.options.getString("time")!
|
||||
const reason = interaction.options.getString("reason") || "No reason provided"
|
||||
const mod = interaction.member! as GuildMember
|
||||
// FIXME: report error to ms manitainer
|
||||
// @ts-expect-error: i'll file a bu report later
|
||||
const time = ms(timeString)
|
||||
|
||||
if (!time) {
|
||||
|
||||
Reference in New Issue
Block a user