Skip to content

Commit e80ad74

Browse files
author
xyzjesper
committed
Fixed placeholder.ts
1 parent edfbcae commit e80ad74

8 files changed

Lines changed: 9 additions & 7 deletions

File tree

src/main/placeholder.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ export const IMAGE_PLACEHOLDER = {
1313
"{spotify.author.image}": "https://cdn.xyzhub.link/u/HsqWSk.png",
1414
"{inviter.avatar}": "https://i.imgur.com/kjEQRRI.png",
1515
"{polls.image}": "https://i.imgur.com/FHBicGA.png",
16+
"{stream.vod}": "https://twitch.tv/vod.png",
17+
"{thumbnail}": "https://youtube.com/thumbnail.png"
1618
};
1719

1820
export const TIMESTAMP_PLACEHOLDER = {

src/modules/logging/events/auditlogMessageCreate.ts renamed to src/modules/logging/events/audiLogMessageCreate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default {
4444

4545
if (!loggingData?.Message) return;
4646

47-
const webhook = new WebhookClient({url: loggingData.Integration});
47+
const webhook = new WebhookClient({url: loggingData.Message});
4848

4949
// Prepare message content with proper truncation
5050
const truncatedContent = message.content.length > 1500

src/modules/logging/events/auditlogMessageDelete.ts renamed to src/modules/logging/events/auditLogMessageDelete.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ export default {
3434
}
3535
});
3636

37-
if (!loggingData?.Integration) return;
37+
if (!loggingData?.Message) return;
3838

39-
const webhook = new WebhookClient({url: loggingData.Integration});
39+
const webhook = new WebhookClient({url: loggingData.Message});
4040

4141
// Get deletion details from audit logs
4242
let deleter = null;

src/modules/logging/events/auditlogMessageForward.ts renamed to src/modules/logging/events/auditLogMessageForward.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ export default {
4141
}
4242
});
4343

44-
if (!loggingData?.Integration) return;
44+
if (!loggingData?.Message) return;
4545

46-
const webhook = new WebhookClient({url: loggingData.Integration});
46+
const webhook = new WebhookClient({url: loggingData.Message});
4747
const originalMessage = message.messageSnapshots.first();
4848

4949
if (!originalMessage) return;
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/systems/twitch.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export async function checkTwitch(client: ExtendedClient) {
4242
`https://api.twitch.tv/helix/streams?user_login=${twitchDocument.TwitchChannelName}`,
4343
{
4444
headers: {
45-
"Client-Id": "dtqw2suy9vbzzhpoure8ibuq8r0vnj",
45+
"Client-Id": Config.Modules.Notifications.TwitchClientId,
4646
Authorization: `Bearer ${config?.TwitchToken}`,
4747
"Content-Type": "application/json",
4848
},
@@ -121,7 +121,7 @@ export async function checkTwitch(client: ExtendedClient) {
121121
.replace("{pingrole}", `<@&${twitchDocument.PingRoles[0]}>`)
122122
.replace("{stream.viewer_count}", `${stream.viewer_count}`)
123123
.replace("{stream.game_name}", `${stream.game_name}`)
124-
.replace("{stream.vod}", `${thumbnailUrl}`)
124+
.replace("https://twitch.tv/vod.png", `${thumbnailUrl}`)
125125
.replace(
126126
"https://static-cdn.jtvnw.net/previews-ttv/live_user_streamer-1920x1080.jpg",
127127
`${thumbnailUrl}`

0 commit comments

Comments
 (0)