Skip to content
This repository was archived by the owner on May 27, 2025. It is now read-only.

feat: add support and vote commands#8

Merged
nsylke merged 2 commits intomainfrom
feat/system-cmds
Apr 27, 2025
Merged

feat: add support and vote commands#8
nsylke merged 2 commits intomainfrom
feat/system-cmds

Conversation

@nsylke
Copy link
Contributor

@nsylke nsylke commented Apr 27, 2025

No description provided.

@github-actions
Copy link

Semgrep Results

No issues found!

@nsylke nsylke requested a review from Copilot April 27, 2025 04:25
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces two new commands to the application: a vote command and a support command.

  • Adds a stub for the vote command that currently replies with a not implemented message and is disabled by default.
  • Adds the support command that replies with a support server link.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
apps/idlebiz/src/commands/system/vote.ts Adds the vote command stub with an "enabled: false" flag.
apps/idlebiz/src/commands/system/support.ts Adds the support command that returns a message with server link.

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.
@nsylke nsylke merged commit 1f9eb4d into main Apr 27, 2025
5 checks passed
@nsylke nsylke deleted the feat/system-cmds branch April 27, 2025 04:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants