Skip to content
This repository was archived by the owner on May 27, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions apps/idlebiz/src/commands/system/support.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { createCommand } from "@/lib/CommandHandler";
import { ApplicationCommandType, MessageFlags } from "discord.js";

export default createCommand({
metadata: {
options: {
name: "support",
description: "Join our support server",
type: ApplicationCommandType.ChatInput,
},
},
chatInput: async (client, interaction) => {
await interaction.reply({
content: "You can join our support server at https://discord.gg/trpkit.",
flags: [MessageFlags.Ephemeral],
Copy link

Copilot AI Apr 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discord interactions typically use the 'ephemeral: true' option instead of setting ephemeral flags through an array. Please update this line to use 'ephemeral: true' to ensure the message is correctly marked as ephemeral.

Suggested change
flags: [MessageFlags.Ephemeral],
ephemeral: true,

Copilot uses AI. Check for mistakes.
});
},
});
18 changes: 18 additions & 0 deletions apps/idlebiz/src/commands/system/vote.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { createCommand } from "@/lib/CommandHandler";
import { ApplicationCommandType } from "discord.js";

export default createCommand({
metadata: {
options: {
name: "vote",
description: "Vote for IdleBiz on top.gg to receive some rewards",
type: ApplicationCommandType.ChatInput,
},
enabled: false,
},
chatInput: async (client, interaction) => {
await interaction.reply({
content: "Command not implemented yet.",
});
},
});