import { MessageFlags, type ButtonInteraction, type ChatInputCommandInteraction } from "discord.js"; import type { Middleware } from "../types/Middleware"; export const devOnly: Middleware = async ( interaction, client, next, ) => { if (!client.developers.includes(interaction.user.id)) { await interaction.reply({ content: "You are not authorized to use this command.", flags: [MessageFlags.Ephemeral], }); return; } await next(); };