Skip to content

Commit

Permalink
chore: bump discord.js to 14.15.1
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperchupuDev committed May 4, 2024
1 parent 1cab1e4 commit cbe2c58
Show file tree
Hide file tree
Showing 4 changed files with 90 additions and 86 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@prisma/client": "^5.13.0",
"bufferutil": "^4.0.8",
"dedent": "^1.5.3",
"discord.js": "^14.14.1",
"discord.js": "^14.15.1",
"g-detector": "^0.1.6",
"neon-env": "^0.2.1",
"topgg-autoposter": "^2.0.2",
Expand All @@ -47,7 +47,7 @@
"cross-env": "^7.0.3",
"prisma": "^5.13.0",
"standard-changelog": "^5.0.0",
"tsx": "^4.9.0",
"tsx": "^4.9.1",
"typescript": "^5.4.5"
},
"engines": {
Expand Down
152 changes: 74 additions & 78 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions src/commands/g-spy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,19 @@ import {
ButtonBuilder,
type ButtonInteraction,
ButtonStyle,
type CommandInteraction,
type ChatInputCommandInteraction,
ContextMenuCommandBuilder,
PermissionFlagsBits,
SlashCommandBuilder
SlashCommandBuilder,
type UserContextMenuCommandInteraction
} from 'discord.js';

export const appPermissions = [PermissionFlagsBits.ManageRoles];

export async function onCommand(client: Application, interaction: CommandInteraction<'cached'>) {
export async function onCommand(
client: Application,
interaction: ChatInputCommandInteraction<'cached'> | UserContextMenuCommandInteraction<'cached'>
) {
const member = interaction.options.getMember('user');

if (!member || member.id === interaction.user.id || member.user.bot) {
Expand Down
Loading

0 comments on commit cbe2c58

Please sign in to comment.