Skip to content

Commit 7dc27e9

Browse files
committed
OOP: Say (fix channel)
1 parent c662ad2 commit 7dc27e9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/commands/app/say.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const {
1818
const { ModCommand } = require('../../classes/command/modcommand.class')
1919
// Base Rook Embed
2020
const { RookEmbed } = require('../../classes/embed/rembed.class')
21+
const { isNumeric } = require('../../utils/numFuncs')
2122
// Use Discord HammerTime
2223
const timeFormat = require('../../utils/timeFormat')
2324
const path = require('path') // Easy filepath management
@@ -158,6 +159,10 @@ module.exports = class SayCommand extends ModCommand {
158159
return false
159160
}
160161

162+
if (isNumeric(channel)) {
163+
channel = await interaction.guild.channels.fetch(channel)
164+
}
165+
161166
// Say Mode
162167
if (mode == "say") {
163168
result = await channel.send(message)

0 commit comments

Comments
 (0)