A Deno-powered backend service for Plants vs. Zombies: MODDED. [Read-only GitHub mirror] docs.pvzm.net
express typescript expressjs plant deno jspvz pvzm game online backend plants-vs-zombies zombie javascript plants modded vs plantsvszombies openapi pvz noads
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Format "0.5.1: try to auto-publish messages where possible" Original commit: https://github.com/ROBlNET13/pvzm-backend/commit/45b0a9459fcad73b04157d4f2d16856b2f262490

Co-authored-by: ClaytonTDM <clay@clay.rip>

+15 -2
+15 -2
modules/logging/discord.ts
··· 1 - import { AttachmentBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle, ChannelType, Client, EmbedBuilder, GatewayIntentBits, Message, TextChannel } from "discord.js"; 1 + import { 2 + AttachmentBuilder, 3 + ActionRowBuilder, 4 + ButtonBuilder, 5 + ButtonStyle, 6 + ChannelType, 7 + Client, 8 + EmbedBuilder, 9 + GatewayIntentBits, 10 + Message, 11 + TextChannel, 12 + } from "discord.js"; 2 13 import { Buffer } from "node:buffer"; 3 14 4 15 import type { LevelInfo, AdminLevelInfo, LoggingProvider, ReportInfo, AuditLogEntry } from "./types.ts"; ··· 167 178 168 179 // send a link to the admin message in the audit channel 169 180 if (this.auditChannel) { 170 - const auditMessage = await this.auditChannel.send(`https://discord.com/channels/${this.adminChannel.guildId}/${this.adminChannel.id}/${message.id}`); 181 + const auditMessage = await this.auditChannel.send( 182 + `https://discord.com/channels/${this.adminChannel.guildId}/${this.adminChannel.id}/${message.id}` 183 + ); 171 184 await this.tryPublish(auditMessage); 172 185 } 173 186