Skip to content

Commit

Permalink
Update Discord.js to 14.17.3
Browse files Browse the repository at this point in the history
  • Loading branch information
moyogii committed Jan 22, 2025
1 parent f7a87c7 commit 6b707fc
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 102 deletions.
172 changes: 71 additions & 101 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"discord-api-types": "^0.37.93",
"discord-interactions": "^4.0.0",
"discord-oauth2": "^2.12.1",
"discord.js": "^14.15.3",
"discord.js": "^14.17.3",
"express": "^4.19.2",
"glob": "^11.0.0",
"install": "^0.13.0",
Expand Down
6 changes: 6 additions & 0 deletions src/Modules/embeds/embeds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ export class BotEmbeds {
const channel: TextBasedChannel | null = interaction.channel;
if (!channel) return;

// Make sure that it is a sendable channel
if (!channel.isSendable()) return;

channel.send(interaction.fields.getTextInputValue('messageToSend'));

await interaction.reply({
Expand Down Expand Up @@ -210,6 +213,9 @@ export class BotEmbeds {
const channel: TextBasedChannel | null = interaction.channel;
if (!channel) return;

// Make sure that it is a sendable channel
if (!channel.isSendable()) return;

const payload =
buttonRow.components.length >= 1
? {
Expand Down

0 comments on commit 6b707fc

Please sign in to comment.