Skip to content

Commit 92aaca8

Browse files
committed
Fix quoting from voice channels
1 parent 31cc678 commit 92aaca8

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/modules/wheatley/components/quote.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,12 @@ export default class Quote extends BotComponent {
133133
const files: (Discord.AttachmentPayload | Discord.Attachment)[] = [];
134134
for (const { domain, channel_id, message_id, block } of messages) {
135135
const channel = await this.wheatley.guild.channels.fetch(channel_id);
136-
if (channel && channel.isTextBased()) {
136+
if (
137+
channel &&
138+
(channel.isTextBased() ||
139+
channel instanceof Discord.VoiceChannel ||
140+
channel instanceof Discord.StageChannel)
141+
) {
137142
// TODO: Handle null command.member case better...
138143
const member =
139144
command instanceof TextBasedCommand ? await command.get_member() : unwrap(command.member);

0 commit comments

Comments
 (0)