the funny
This commit is contained in:
parent
5a555b7bb0
commit
09a573a2d3
118 changed files with 15738 additions and 24427 deletions
|
@ -3,6 +3,7 @@ import { commandTypeHelpers as ct } from "../../../commandTypes";
|
|||
import { isStaffPreFilter } from "../../../pluginUtils";
|
||||
import { createChunkedMessage, getUser, renderUsername, sorter } from "../../../utils";
|
||||
import { botControlCmd } from "../types";
|
||||
import { TextBasedChannelFields, TextChannel } from "discord.js";
|
||||
|
||||
export const ServersCmd = botControlCmd({
|
||||
trigger: ["servers", "guilds"],
|
||||
|
@ -52,16 +53,16 @@ export const ServersCmd = botControlCmd({
|
|||
owner.id
|
||||
}\`)`;
|
||||
});
|
||||
createChunkedMessage(msg.channel, lines.join("\n"));
|
||||
await createChunkedMessage(msg.channel as TextChannel, lines.join("\n"));
|
||||
} else {
|
||||
msg.channel.send("No servers matched the filters");
|
||||
await (msg.channel as TextBasedChannelFields).send("No servers matched the filters");
|
||||
}
|
||||
} else {
|
||||
const total = joinedGuilds.length;
|
||||
const initialized = joinedGuilds.filter((g) => loadedGuildsMap.has(g.id)).length;
|
||||
const unInitialized = total - initialized;
|
||||
|
||||
msg.channel.send(
|
||||
await (msg.channel as TextBasedChannelFields).send(
|
||||
`I am on **${total} total servers**, of which **${initialized} are initialized** and **${unInitialized} are not initialized**`,
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue