mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-03 00:41:27 +03:00
do stuff
This commit is contained in:
@@ -174,8 +174,9 @@ module.exports = class Command {
|
||||
* @param {boolean} secret - Ephemeral message? **NOTE: EMBEDS AND ATTACHMENTS DO NOT RENDER IF TRUE**
|
||||
*/
|
||||
async sendResponse(interaction, content, secret) {
|
||||
const send = this.client.api.interactions(interaction.id, interaction.token).messages['@original'].patch;
|
||||
if (typeof content === 'object')
|
||||
this.client.api.interactions(interaction.id, interaction.token).callback.post({
|
||||
send({
|
||||
data: {
|
||||
type: 4,
|
||||
data: {
|
||||
@@ -184,8 +185,8 @@ module.exports = class Command {
|
||||
}
|
||||
}
|
||||
});
|
||||
else
|
||||
this.client.api.interactions(interaction.id, interaction.token).callback.post({
|
||||
else if (typeof content === 'string')
|
||||
send({
|
||||
data: {
|
||||
type: 4,
|
||||
data: {
|
||||
|
@@ -1,4 +1,26 @@
|
||||
module.exports = {
|
||||
TicketManager: require('./manager'),
|
||||
Ticket: require('./ticket'),
|
||||
const EventEmitter = require('events');
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
const { Client } = require('discord.js');
|
||||
|
||||
/** Manages tickets */
|
||||
module.exports = class extends EventEmitter {
|
||||
/**
|
||||
* Create a TicketManager instance
|
||||
* @param {Client} client
|
||||
*/
|
||||
constructor(client) {
|
||||
super();
|
||||
|
||||
/** The Discord Client */
|
||||
this.client = client;
|
||||
|
||||
this.setMaxListeners(this.client.config.max_listeners);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new ticket
|
||||
*/
|
||||
async create() {
|
||||
|
||||
}
|
||||
};
|
@@ -1,26 +0,0 @@
|
||||
const EventEmitter = require('events');
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
const { Client } = require('discord.js');
|
||||
|
||||
/** Manages tickets */
|
||||
module.exports = class extends EventEmitter {
|
||||
/**
|
||||
* Create a TicketManager instance
|
||||
* @param {Client} client
|
||||
*/
|
||||
constructor(client) {
|
||||
super();
|
||||
|
||||
/** The Discord Client */
|
||||
this.client = client;
|
||||
|
||||
this.setMaxListeners(this.client.config.max_listeners);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new ticket
|
||||
*/
|
||||
async create() {
|
||||
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user