mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-23 08:13:09 +02:00
Fix thing, add number column to tickets
This commit is contained in:
parent
5e9e23bbf2
commit
ed12120f1b
@ -34,7 +34,6 @@ module.exports = class NewCommand extends Command {
|
|||||||
|
|
||||||
return new MessageEmbed()
|
return new MessageEmbed()
|
||||||
.setColor(settings.colour)
|
.setColor(settings.colour)
|
||||||
.setTitle(i18n('bot.version', require('../../package.json').version))
|
.setTitle(i18n('bot.version', require('../../package.json').version));
|
||||||
.secret = true;
|
|
||||||
}
|
}
|
||||||
};
|
};
|
@ -85,6 +85,11 @@ module.exports = async (log) => {
|
|||||||
primaryKey: true,
|
primaryKey: true,
|
||||||
allowNull: false,
|
allowNull: false,
|
||||||
},
|
},
|
||||||
|
number: {
|
||||||
|
type: DataTypes.INTEGER,
|
||||||
|
autoIncrement: true,
|
||||||
|
allowNull: false,
|
||||||
|
},
|
||||||
guild: {
|
guild: {
|
||||||
type: DataTypes.STRING,
|
type: DataTypes.STRING,
|
||||||
allowNull: false,
|
allowNull: false,
|
||||||
@ -92,7 +97,7 @@ module.exports = async (log) => {
|
|||||||
model: Guild,
|
model: Guild,
|
||||||
key: 'id'
|
key: 'id'
|
||||||
},
|
},
|
||||||
}
|
},
|
||||||
}, {
|
}, {
|
||||||
tableName: DB_TABLE_PREFIX + 'tickets'
|
tableName: DB_TABLE_PREFIX + 'tickets'
|
||||||
});
|
});
|
||||||
|
@ -152,7 +152,9 @@ module.exports = class Command {
|
|||||||
this.client.api.interactions(interaction.id, interaction.token).callback.post({
|
this.client.api.interactions(interaction.id, interaction.token).callback.post({
|
||||||
data: {
|
data: {
|
||||||
type: 5,
|
type: 5,
|
||||||
flags: flags(secret),
|
data: {
|
||||||
|
flags: flags(secret)
|
||||||
|
},
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -168,16 +170,18 @@ module.exports = class Command {
|
|||||||
this.client.api.interactions(interaction.id, interaction.token).callback.post({
|
this.client.api.interactions(interaction.id, interaction.token).callback.post({
|
||||||
data: {
|
data: {
|
||||||
type: 4,
|
type: 4,
|
||||||
flags: flags(secret),
|
data: {
|
||||||
data: await createMessage(this.client, interaction.channel_id, content)
|
flags: flags(secret),
|
||||||
|
...await createMessage(this.client, interaction.channel_id, content)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
else
|
else
|
||||||
this.client.api.interactions(interaction.id, interaction.token).callback.post({
|
this.client.api.interactions(interaction.id, interaction.token).callback.post({
|
||||||
data: {
|
data: {
|
||||||
type: 4,
|
type: 4,
|
||||||
flags: flags(secret),
|
|
||||||
data: {
|
data: {
|
||||||
|
flags: flags(secret),
|
||||||
content
|
content
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user