Skip to content

Commit

Permalink
Update name of threeht
Browse files Browse the repository at this point in the history
  • Loading branch information
onepiecehung committed Jun 26, 2023
1 parent a41af8b commit 0e5900c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 4 additions & 1 deletion src/buttons/3hentai.button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ export default {
id: BUTTON_ID.threeHentaiRead,
async execute(interaction: ButtonInteraction | any) {
const thread = await interaction.channel.threads.create({
name: interaction.message.embeds[0].title,
name:
interaction.message.embeds[0].title.length < 99
? interaction.message.embeds[0].title
: interaction.message.embeds[0].title.substring(0, 50),
startMessage: interaction.message,
autoArchiveDuration: ThreadAutoArchiveDuration.OneHour,
reason: FOOTER.text,
Expand Down
6 changes: 1 addition & 5 deletions src/commands/slash/3hentai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,7 @@ export default {
.addFields(
{
name: `Title: `,
value: `${
result.title.length < 99
? result.title
: result.title.substring(0, 90)
}`,
value: `${result.title}`,
},
{
name: "Total of pages",
Expand Down

0 comments on commit 0e5900c

Please sign in to comment.