This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "scripts": { | |
| "clean": "node -e 'require(`node:fs`).rmSync(require(`node:path`).resolve(`dist`),{recursive:true,force:true})'" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| discord: ephemeral#5338 | |
| discord server: discord.gg/5k7nA66 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { APIMessage, Structures } = require("discord.js"); | |
| class ExtAPIMessage extends APIMessage { | |
| resolveData() { | |
| if (this.data) return this; | |
| super.resolveData(); | |
| const allowedMentions = this.options.allowedMentions || this.target.client.options.allowedMentions || {}; | |
| if (allowedMentions.repliedUser !== undefined) { | |
| if (this.data.allowed_mentions === undefined) this.data.allowed_mentions = {}; | |
| Object.assign(this.data.allowed_mentions, { replied_user: allowedMentions.repliedUser }); |