onlyReply(response, options) {
        return __awaiter(this, void 0, void 0, function* () {
            if (!response) {
                throw new error_1.default("Cannot send an empty message.");
            }
            let data = {
                content: response,
                flags: 64,
                embeds: undefined,
                tts: undefined,
            };
            if (typeof response === "object") {
                const embed = new discord_js_1.MessageEmbed(response);
                data = yield this.handler.slashCmds.APIMsg(this.channel, embed);
            }
            if (data.embeds) {
                data.embeds = [options.embeds];
            }
            if (data.tts) {
                data.tts = options.tts || false;
            }
            //@ts-ignore
            this.client.api.interactions(this.id, this.token).callback.post({
                data: {
                    type: 4,
                    data,
                },
            });
        });
    }
/**
     * Replying to the user but only they can see it!
     * @example interaction.onlyReply('Hey! Your special.')
     */
Replying to the user but only they can see it.
Replying to the user but only they can see it .
onlyReply(response, options) {
        return __awaiter(this, void 0, void 0, function* () {
            if (!response) {
                throw new error_1.default("Cannot send an empty message.");
            }
            let data = {
                content: response,
                flags: 64,
                embeds: undefined,
                tts: undefined,
            };
            if (typeof response === "object") {
                const embed = new discord_js_1.MessageEmbed(response);
                data = yield this.handler.slashCmds.APIMsg(this.channel, embed);
            }
            if (data.embeds) {
                data.embeds = [options.embeds];
            }
            if (data.tts) {
                data.tts = options.tts || false;
            }
            this.client.api.interactions(this.id, this.token).callback.post({
                data: {
                    type: 4,
                    data,
                },
            });
        });
    }
onlyReply ( response , options ) { return __awaiter ( this , void 0 , void 0 , function * ( ) { if ( ! response ) { throw new error_1 . default ( "Cannot send an empty message." ) ; } let data = { content : response , flags : 64 , embeds : undefined , tts : undefined , } ; if ( typeof response === "object" ) { const embed = new discord_js_1 . MessageEmbed ( response ) ; data = yield this . handler . slashCmds . APIMsg ( this . channel , embed ) ; } if ( data . embeds ) { data . embeds = [ options . embeds ] ; } if ( data . tts ) { data . tts = options . tts || false ; } this . client . api . interactions ( this . id , this . token ) . callback . post ( { data : { type : 4 , data , } , } ) ; } ) ; }
Replying to the user but only they can see it!
Replying to the user but only they can see it!
//@ts-ignore