Skip to content

Commit

Permalink
Fix command uploading
Browse files Browse the repository at this point in the history
  • Loading branch information
vcarl committed Dec 12, 2024
1 parent 31742b8 commit 34dd704
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions app/discord/deployCommands.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ import { calculateChangedCommands } from "~/helpers/discordCommands";
*/
export const deployCommands = async (client: Client) => {
const localCommands = [...commands.values()]
.filter((c) => isSlashCommand(c) || isUserContextCommand(c))
.filter(
(c) =>
isSlashCommand(c) ||
isUserContextCommand(c) ||
isMessageContextCommand(c),
)
.map(({ command }) => command);

await (isProd()
Expand Down Expand Up @@ -187,7 +192,7 @@ export const deployTestCommands = async (

const changes = calculateChangedCommands(localCommands, guildCommands);
console.log(
`${guild.name}: ${
`${guild.name} (${localCommands.length} local): ${
changes.didCommandsChange
? `Upserting ${localCommands.length} commands.`
: "No command updates."
Expand Down

0 comments on commit 34dd704

Please sign in to comment.