mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-11 13:56:15 +00:00
fix(bots/discord): only fetch reference when it exists when respondToReply is set
whoops, testing in production
This commit is contained in:
@@ -33,7 +33,7 @@ withContext(on, 'messageCreate', async (context, msg) => {
|
||||
if (response) {
|
||||
logger.debug('Response found')
|
||||
|
||||
const toReply = (
|
||||
const toReply = msg.reference?.messageId && (
|
||||
respondToReply === true
|
||||
? true
|
||||
: (respondToReply === 'only_labeled' && label !== undefined) ||
|
||||
|
||||
Reference in New Issue
Block a user