mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
Update to discord.js v13.8.0, adding support for text-in-voice
This commit is contained in:
parent
ba78103807
commit
b05fbe1d04
32 changed files with 151 additions and 149 deletions
|
@ -3,7 +3,7 @@ import { LogsPluginType } from "../types";
|
|||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { BaseGuildTextChannel, ThreadChannel, User } from "discord.js";
|
||||
import { BaseGuildTextChannel, GuildTextBasedChannel, ThreadChannel, User } from "discord.js";
|
||||
import {
|
||||
channelToTemplateSafeChannel,
|
||||
savedMessageToTemplateSafeSavedMessage,
|
||||
|
@ -15,7 +15,7 @@ import { deactivateMentions, disableCodeBlocks } from "knub/dist/helpers";
|
|||
|
||||
interface LogCensorData {
|
||||
user: User | UnknownUser;
|
||||
channel: BaseGuildTextChannel | ThreadChannel;
|
||||
channel: GuildTextBasedChannel;
|
||||
reason: string;
|
||||
message: SavedMessage;
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@ import { FORMAT_NO_TIMESTAMP, LogsPluginType } from "../types";
|
|||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { BaseGuildTextChannel, ThreadChannel, User } from "discord.js";
|
||||
import { BaseGuildTextChannel, GuildTextBasedChannel, ThreadChannel, User } from "discord.js";
|
||||
import {
|
||||
channelToTemplateSafeChannel,
|
||||
savedMessageToTemplateSafeSavedMessage,
|
||||
|
@ -16,7 +16,7 @@ import { UnknownUser, useMediaUrls } from "../../../utils";
|
|||
|
||||
interface LogMessageDeleteData {
|
||||
user: User | UnknownUser;
|
||||
channel: BaseGuildTextChannel | ThreadChannel;
|
||||
channel: GuildTextBasedChannel;
|
||||
message: SavedMessage;
|
||||
}
|
||||
|
||||
|
|
|
@ -3,12 +3,12 @@ import { LogsPluginType } from "../types";
|
|||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { BaseGuildTextChannel, ThreadChannel } from "discord.js";
|
||||
import { BaseGuildTextChannel, GuildTextBasedChannel, ThreadChannel } from "discord.js";
|
||||
import { channelToTemplateSafeChannel } from "../../../utils/templateSafeObjects";
|
||||
|
||||
interface LogMessageDeleteBareData {
|
||||
messageId: string;
|
||||
channel: BaseGuildTextChannel | ThreadChannel;
|
||||
channel: GuildTextBasedChannel;
|
||||
}
|
||||
|
||||
export function logMessageDeleteBare(pluginData: GuildPluginData<LogsPluginType>, data: LogMessageDeleteBareData) {
|
||||
|
|
|
@ -3,13 +3,13 @@ import { LogsPluginType } from "../types";
|
|||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { BaseGuildTextChannel, ThreadChannel } from "discord.js";
|
||||
import { BaseGuildTextChannel, GuildTextBasedChannel, ThreadChannel } from "discord.js";
|
||||
import { channelToTemplateSafeChannel } from "../../../utils/templateSafeObjects";
|
||||
|
||||
interface LogMessageDeleteBulkData {
|
||||
count: number;
|
||||
authorIds: string[];
|
||||
channel: BaseGuildTextChannel | ThreadChannel;
|
||||
channel: GuildTextBasedChannel;
|
||||
archiveUrl: string;
|
||||
}
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ import { LogsPluginType } from "../types";
|
|||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { BaseGuildTextChannel, ThreadChannel, User } from "discord.js";
|
||||
import { BaseGuildTextChannel, GuildTextBasedChannel, ThreadChannel, User } from "discord.js";
|
||||
import {
|
||||
channelToTemplateSafeChannel,
|
||||
savedMessageToTemplateSafeSavedMessage,
|
||||
|
@ -14,7 +14,7 @@ import { UnknownUser } from "../../../utils";
|
|||
|
||||
interface LogMessageEditData {
|
||||
user: User | UnknownUser;
|
||||
channel: BaseGuildTextChannel | ThreadChannel;
|
||||
channel: GuildTextBasedChannel;
|
||||
before: SavedMessage;
|
||||
after: SavedMessage;
|
||||
}
|
||||
|
|
|
@ -3,12 +3,12 @@ import { LogsPluginType } from "../types";
|
|||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { BaseGuildTextChannel, ThreadChannel, User } from "discord.js";
|
||||
import { BaseGuildTextChannel, GuildTextBasedChannel, ThreadChannel, User } from "discord.js";
|
||||
import { channelToTemplateSafeChannel, userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
|
||||
interface LogPostedScheduledMessageData {
|
||||
author: User;
|
||||
channel: BaseGuildTextChannel | ThreadChannel;
|
||||
channel: GuildTextBasedChannel;
|
||||
messageId: string;
|
||||
}
|
||||
|
||||
|
|
|
@ -3,12 +3,12 @@ import { LogsPluginType } from "../types";
|
|||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { BaseGuildTextChannel, ThreadChannel, User } from "discord.js";
|
||||
import { BaseGuildTextChannel, GuildTextBasedChannel, ThreadChannel, User } from "discord.js";
|
||||
import { channelToTemplateSafeChannel, userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
|
||||
interface LogRepeatedMessageData {
|
||||
author: User;
|
||||
channel: BaseGuildTextChannel | ThreadChannel;
|
||||
channel: GuildTextBasedChannel;
|
||||
datetime: string;
|
||||
date: string;
|
||||
time: string;
|
||||
|
|
|
@ -3,12 +3,12 @@ import { LogsPluginType } from "../types";
|
|||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { BaseGuildTextChannel, ThreadChannel, User } from "discord.js";
|
||||
import { BaseGuildTextChannel, GuildTextBasedChannel, ThreadChannel, User } from "discord.js";
|
||||
import { channelToTemplateSafeChannel, userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
|
||||
interface LogScheduledMessageData {
|
||||
author: User;
|
||||
channel: BaseGuildTextChannel | ThreadChannel;
|
||||
channel: GuildTextBasedChannel;
|
||||
datetime: string;
|
||||
date: string;
|
||||
time: string;
|
||||
|
|
|
@ -3,12 +3,12 @@ import { LogsPluginType } from "../types";
|
|||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { BaseGuildTextChannel, ThreadChannel, User } from "discord.js";
|
||||
import { BaseGuildTextChannel, GuildTextBasedChannel, ThreadChannel, User } from "discord.js";
|
||||
import { channelToTemplateSafeChannel, userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
|
||||
interface LogScheduledRepeatedMessageData {
|
||||
author: User;
|
||||
channel: BaseGuildTextChannel | ThreadChannel;
|
||||
channel: GuildTextBasedChannel;
|
||||
datetime: string;
|
||||
date: string;
|
||||
time: string;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue