the funny

This commit is contained in:
Lara 2024-11-02 14:55:29 +02:00
parent 5a555b7bb0
commit 09a573a2d3
Signed by: laratheprotogen
GPG key ID: 5C0296EB3165F98B
118 changed files with 15738 additions and 24427 deletions

View file

@ -3,6 +3,7 @@ import { GuildArchives } from "../../../data/GuildArchives";
import { getBaseUrl, sendSuccessMessage } from "../../../pluginUtils";
import { getRateLimitStats } from "../../../rateLimitStats";
import { botControlCmd } from "../types";
import { TextBasedChannelFields } from "discord.js";
export const RateLimitPerformanceCmd = botControlCmd({
trigger: ["rate_limit_performance"],
@ -34,6 +35,6 @@ export const RateLimitPerformanceCmd = botControlCmd({
const archives = GuildArchives.getGuildInstance("0");
const archiveId = await archives.create(fullText, moment().add(1, "hour"));
const archiveUrl = archives.getUrl(getBaseUrl(pluginData), archiveId);
msg.channel.send(`Link: ${archiveUrl}`);
await (msg.channel as TextBasedChannelFields).send(`Link: ${archiveUrl}`);
},
});