Skip to content

Commit 2072cd5

Browse files
committed
chore: format
1 parent 1ae93fd commit 2072cd5

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

src/events/messages.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@ import { type Client, Events, MessageType } from "discord.js";
33
export default function registerEvents(client: Client) {
44
return client.on(Events.MessageCreate, async (message) => {
55
// If the bot pins a message, then we delete the automatic announcement message
6-
if(message.type === MessageType.ChannelPinnedMessage && message.author.id === client.user.id) {
7-
await message.delete();
6+
if (
7+
message.type === MessageType.ChannelPinnedMessage &&
8+
message.author.id === client.user.id
9+
) {
10+
await message.delete();
811
}
912
});
1013
}

src/events/walkthrough.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export default function registerEvents(client: Client) {
7777
selectors[index + 1], // next selector
7878
[dataEmbed],
7979
);
80-
} else if(lastStep) {
80+
} else if (lastStep) {
8181
// This is the last step of the walkthrough, so we generate an empty message with just the data embed
8282
messageData = { components: [], embeds: [dataEmbed] };
8383
} else {
@@ -88,7 +88,7 @@ export default function registerEvents(client: Client) {
8888
await interaction.update(messageData);
8989

9090
// If this is the last step of the walkthrough, we pin the message
91-
if(lastStep) {
91+
if (lastStep) {
9292
await interaction.message.pin();
9393
}
9494
}

src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ import registerMessageEvents from "./events/messages.js";
66

77
import { Client, Events, GatewayIntentBits, ActivityType } from "discord.js";
88

9-
const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages] });
9+
const client = new Client({
10+
intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages],
11+
});
1012

1113
const presenceList = [
1214
{ name: "with Coder", type: ActivityType.Playing },

0 commit comments

Comments
 (0)