mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 05:04:58 +05:00
some clean up
This commit is contained in:
parent
e07da7f183
commit
b7565115c3
3 changed files with 4 additions and 8 deletions
|
@ -9,7 +9,7 @@ class AvatarContext extends BaseCommand {
|
||||||
constructor() {
|
constructor() {
|
||||||
super({
|
super({
|
||||||
command: new ContextMenuCommandBuilder()
|
command: new ContextMenuCommandBuilder()
|
||||||
.setName("Avatar")
|
.setName("Get Avatar")
|
||||||
.setType(ApplicationCommandType.User)
|
.setType(ApplicationCommandType.User)
|
||||||
.setDMPermission(false),
|
.setDMPermission(false),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
|
|
|
@ -9,7 +9,7 @@ class WarnContext extends BaseCommand {
|
||||||
constructor() {
|
constructor() {
|
||||||
super({
|
super({
|
||||||
command: new ContextMenuCommandBuilder()
|
command: new ContextMenuCommandBuilder()
|
||||||
.setName("Warn")
|
.setName("Give Warn")
|
||||||
.setType(ApplicationCommandType.User)
|
.setType(ApplicationCommandType.User)
|
||||||
.setDMPermission(false)
|
.setDMPermission(false)
|
||||||
.setDefaultMemberPermissions(PermissionsBitField.Flags.ManageMessages),
|
.setDefaultMemberPermissions(PermissionsBitField.Flags.ManageMessages),
|
||||||
|
|
|
@ -99,9 +99,7 @@ class CreateTicketEmbed extends BaseCommand {
|
||||||
const row = new ActionRowBuilder().addComponents(closeButton, transcriptButton);
|
const row = new ActionRowBuilder().addComponents(closeButton, transcriptButton);
|
||||||
|
|
||||||
await channel.send({ embeds: [embed], components: [row] });
|
await channel.send({ embeds: [embed], components: [row] });
|
||||||
}
|
} else if (button.customId === "close_ticket") {
|
||||||
|
|
||||||
if (button.customId === "close_ticket") {
|
|
||||||
const embed = new EmbedBuilder()
|
const embed = new EmbedBuilder()
|
||||||
.setTitle(interaction.translate("tickets/closeticket:CLOSING_TITLE"))
|
.setTitle(interaction.translate("tickets/closeticket:CLOSING_TITLE"))
|
||||||
.setDescription(interaction.translate("tickets/closeticket:CLOSING_DESC"))
|
.setDescription(interaction.translate("tickets/closeticket:CLOSING_DESC"))
|
||||||
|
@ -174,9 +172,7 @@ class CreateTicketEmbed extends BaseCommand {
|
||||||
await interaction.channel.setName(`${interaction.channel.name}-closed`);
|
await interaction.channel.setName(`${interaction.channel.name}-closed`);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
} else if (button.customId === "transcript_ticket") {
|
||||||
|
|
||||||
if (button.customId === "transcript_ticket") {
|
|
||||||
await interaction.deferUpdate();
|
await interaction.deferUpdate();
|
||||||
|
|
||||||
const reversedMessages = (await interaction.channel.messages.fetch()).filter(m => !m.author.bot);
|
const reversedMessages = (await interaction.channel.messages.fetch()).filter(m => !m.author.bot);
|
||||||
|
|
Loading…
Reference in a new issue