Skip to content

Commit

Permalink
Ok, i forgot to run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr committed Mar 28, 2024
1 parent 07b3d29 commit 0db4075
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
8 changes: 7 additions & 1 deletion src/handlers/button.handler.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import { ButtonBuilder, ButtonInteraction, Events, Interaction, InteractionButtonComponentData } from 'discord.js';
import {
ButtonBuilder,
ButtonInteraction,
Events,
Interaction,
InteractionButtonComponentData,
} from 'discord.js';
import { Handler } from '..';

// eslint-disable-next-line @typescript-eslint/no-explicit-any
Expand Down
7 changes: 6 additions & 1 deletion src/handlers/modal.handler.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import { Events, ModalBuilder, ModalComponentData, ModalSubmitInteraction } from 'discord.js';
import {
Events,
ModalBuilder,
ModalComponentData,
ModalSubmitInteraction,
} from 'discord.js';
import { Handler } from '..';

// eslint-disable-next-line @typescript-eslint/no-explicit-any
Expand Down
10 changes: 7 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,13 @@ client.on(Events.ThreadCreate, async (channel) => {
(r) => r.name === 'Moderator'
)!;

const message = await channel.send("Bringing mods into this thread so they can see it!")
await message.edit(`${pingRole}`)
await message.edit(`Hello <@!${channel.ownerId}>! Someone will help you shortly, please do not ping moderators or other people and just wait for someone to come help.`)
const message = await channel.send(
'Bringing mods into this thread so they can see it!'
);
await message.edit(`${pingRole}`);
await message.edit(
`Hello <@!${channel.ownerId}>! Someone will help you shortly, please do not ping moderators or other people and just wait for someone to come help.`
);
}
} catch (error) {
console.error('Error handling ThreadCreate', error);
Expand Down

0 comments on commit 0db4075

Please sign in to comment.