We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c662ad2 commit 7dc27e9Copy full SHA for 7dc27e9
src/commands/app/say.js
@@ -18,6 +18,7 @@ const {
18
const { ModCommand } = require('../../classes/command/modcommand.class')
19
// Base Rook Embed
20
const { RookEmbed } = require('../../classes/embed/rembed.class')
21
+const { isNumeric } = require('../../utils/numFuncs')
22
// Use Discord HammerTime
23
const timeFormat = require('../../utils/timeFormat')
24
const path = require('path') // Easy filepath management
@@ -158,6 +159,10 @@ module.exports = class SayCommand extends ModCommand {
158
159
return false
160
}
161
162
+ if (isNumeric(channel)) {
163
+ channel = await interaction.guild.channels.fetch(channel)
164
+ }
165
+
166
// Say Mode
167
if (mode == "say") {
168
result = await channel.send(message)
0 commit comments