mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
Update djs & knub (#395)
* update pkgs
Signed-off-by: GitHub <noreply@github.com>
* new knub typings
Signed-off-by: GitHub <noreply@github.com>
* more pkg updates
Signed-off-by: GitHub <noreply@github.com>
* more fixes
Signed-off-by: GitHub <noreply@github.com>
* channel typings
Signed-off-by: GitHub <noreply@github.com>
* more message utils typings fixes
Signed-off-by: GitHub <noreply@github.com>
* migrate permissions
Signed-off-by: GitHub <noreply@github.com>
* fix: InternalPoster webhookables
Signed-off-by: GitHub <noreply@github.com>
* djs typings: Attachment & Util
Signed-off-by: GitHub <noreply@github.com>
* more typings
Signed-off-by: GitHub <noreply@github.com>
* fix: rename permissionNames
Signed-off-by: GitHub <noreply@github.com>
* more fixes
Signed-off-by: GitHub <noreply@github.com>
* half the number of errors
* knub commands => messageCommands
Signed-off-by: GitHub <noreply@github.com>
* configPreprocessor => configParser
Signed-off-by: GitHub <noreply@github.com>
* fix channel.messages
Signed-off-by: GitHub <noreply@github.com>
* revert automod any typing
Signed-off-by: GitHub <noreply@github.com>
* more configParser typings
Signed-off-by: GitHub <noreply@github.com>
* revert
Signed-off-by: GitHub <noreply@github.com>
* remove knub type params
Signed-off-by: GitHub <noreply@github.com>
* fix more MessageEmbed / MessageOptions
Signed-off-by: GitHub <noreply@github.com>
* dumb commit for @almeidx to see why this is stupid
Signed-off-by: GitHub <noreply@github.com>
* temp disable custom_events
Signed-off-by: GitHub <noreply@github.com>
* more minor typings fixes - 23 err left
Signed-off-by: GitHub <noreply@github.com>
* update djs dep
* +debug build method (revert this)
Signed-off-by: GitHub <noreply@github.com>
* Revert "+debug build method (revert this)"
This reverts commit a80af1e729
.
* Redo +debug build (Revert this)
Signed-off-by: GitHub <noreply@github.com>
* uniform before/after Load shorthands
Signed-off-by: GitHub <noreply@github.com>
* remove unused imports & add prettier plugin
Signed-off-by: GitHub <noreply@github.com>
* env fixes for web platform hosting
Signed-off-by: GitHub <noreply@github.com>
* feat: knub v32-next; related fixes
* fix: allow legacy keys in change_perms action
* fix: request Message Content intent
* fix: use Knub's config validation logic in API
* fix(dashboard): fix error when there are no message and/or slash commands in a plugin
* fix(automod): start_thread action thread options
* fix(CustomEvents): message command types
* chore: remove unneeded type annotation
* feat: add forum channel icon; use thread icon for news threads
* chore: make tslint happy
* chore: fix formatting
---------
Signed-off-by: GitHub <noreply@github.com>
Co-authored-by: almeidx <almeidx@pm.me>
Co-authored-by: Dragory <2606411+Dragory@users.noreply.github.com>
This commit is contained in:
parent
293115af22
commit
06877e90cc
476 changed files with 2965 additions and 3251 deletions
|
@ -1,10 +1,10 @@
|
|||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { User } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogAutomodActionData {
|
||||
rule: string;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogBotAlertData {
|
||||
body: string;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { User } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogCaseCreateData {
|
||||
mod: User;
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { GuildMember } from "discord.js";
|
||||
import { caseToTemplateSafeCase, memberToTemplateSafeMember } from "../../../utils/templateSafeObjects";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { Case } from "../../../data/entities/Case";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { caseToTemplateSafeCase, memberToTemplateSafeMember } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogCaseDeleteData {
|
||||
mod: GuildMember;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { User } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogCaseUpdateData {
|
||||
mod: User;
|
||||
|
|
|
@ -1,18 +1,18 @@
|
|||
import { GuildTextBasedChannel, User } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { deactivateMentions, disableCodeBlocks } from "knub/helpers";
|
||||
import { resolveChannelIds } from "src/utils/resolveChannelIds";
|
||||
import { SavedMessage } from "../../../data/entities/SavedMessage";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { BaseGuildTextChannel, GuildTextBasedChannel, ThreadChannel, User } from "discord.js";
|
||||
import { UnknownUser } from "../../../utils";
|
||||
import {
|
||||
channelToTemplateSafeChannel,
|
||||
savedMessageToTemplateSafeSavedMessage,
|
||||
userToTemplateSafeUser,
|
||||
} from "../../../utils/templateSafeObjects";
|
||||
import { SavedMessage } from "../../../data/entities/SavedMessage";
|
||||
import { UnknownUser } from "../../../utils";
|
||||
import { deactivateMentions, disableCodeBlocks } from "knub/dist/helpers";
|
||||
import { resolveChannelIds } from "src/utils/resolveChannelIds";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogCensorData {
|
||||
user: User | UnknownUser;
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
import { GuildBasedChannel } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { GuildChannel, NewsChannel } from "discord.js";
|
||||
import { channelToTemplateSafeChannel } from "../../../utils/templateSafeObjects";
|
||||
import { resolveChannelIds } from "../../../utils/resolveChannelIds";
|
||||
import { channelToTemplateSafeChannel } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogChannelCreateData {
|
||||
channel: GuildChannel | NewsChannel;
|
||||
channel: GuildBasedChannel;
|
||||
}
|
||||
|
||||
export function logChannelCreate(pluginData: GuildPluginData<LogsPluginType>, data: LogChannelCreateData) {
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
import { GuildBasedChannel } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { GuildChannel, NewsChannel } from "discord.js";
|
||||
import { channelToTemplateSafeChannel } from "../../../utils/templateSafeObjects";
|
||||
import { resolveChannelIds } from "../../../utils/resolveChannelIds";
|
||||
import { channelToTemplateSafeChannel } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogChannelDeleteData {
|
||||
channel: GuildChannel | NewsChannel;
|
||||
channel: GuildBasedChannel;
|
||||
}
|
||||
|
||||
export function logChannelDelete(pluginData: GuildPluginData<LogsPluginType>, data: LogChannelDeleteData) {
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
import { GuildBasedChannel } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { GuildChannel, NewsChannel } from "discord.js";
|
||||
import { channelToTemplateSafeChannel } from "../../../utils/templateSafeObjects";
|
||||
import { resolveChannelIds } from "../../../utils/resolveChannelIds";
|
||||
import { channelToTemplateSafeChannel } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogChannelUpdateData {
|
||||
oldChannel: GuildChannel | NewsChannel;
|
||||
newChannel: GuildChannel | NewsChannel;
|
||||
oldChannel: GuildBasedChannel;
|
||||
newChannel: GuildBasedChannel;
|
||||
differenceString: string;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
import { GuildTextBasedChannel, User } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { BaseGuildTextChannel, User } from "discord.js";
|
||||
import { channelToTemplateSafeChannel, userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
import { resolveChannelIds } from "../../../utils/resolveChannelIds";
|
||||
import { channelToTemplateSafeChannel, userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogCleanData {
|
||||
mod: User;
|
||||
channel: BaseGuildTextChannel;
|
||||
channel: GuildTextBasedChannel;
|
||||
count: number;
|
||||
archiveUrl: string;
|
||||
}
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
import { User } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { UnknownUser } from "../../../utils";
|
||||
import { User } from "discord.js";
|
||||
import { userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogDmFailedData {
|
||||
source: string;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { Emoji } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { emojiToTemplateSafeEmoji } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogEmojiCreateData {
|
||||
emoji: Emoji;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { Emoji } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { emojiToTemplateSafeEmoji } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogEmojiDeleteData {
|
||||
emoji: Emoji;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { Emoji } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { emojiToTemplateSafeEmoji } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogEmojiUpdateData {
|
||||
oldEmoji: Emoji;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { User } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogMassBanData {
|
||||
mod: User;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { User } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogMassMuteData {
|
||||
mod: User;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { User } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogMassUnbanData {
|
||||
mod: User;
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { User } from "discord.js";
|
||||
import { memberToTemplateSafeMember, userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { UnknownUser } from "../../../utils";
|
||||
import { userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogMemberBanData {
|
||||
mod: User | UnknownUser | null;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { GuildMember, Snowflake } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { memberToTemplateSafeMember } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogMemberForcebanData {
|
||||
mod: GuildMember;
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { GuildMember } from "discord.js";
|
||||
import { memberToTemplateSafeMember } from "../../../utils/templateSafeObjects";
|
||||
import moment from "moment-timezone";
|
||||
import humanizeDuration from "humanize-duration";
|
||||
import { GuildPluginData } from "knub";
|
||||
import moment from "moment-timezone";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { memberToTemplateSafeMember } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogMemberJoinData {
|
||||
member: GuildMember;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { GuildMember } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { memberToTemplateSafeMember } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogMemberJoinWithPriorRecordsData {
|
||||
member: GuildMember;
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
import { User } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { GuildMember, User } from "discord.js";
|
||||
import { memberToTemplateSafeMember, userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
import { UnknownUser } from "../../../utils";
|
||||
import { userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogMemberKickData {
|
||||
mod: User | UnknownUser | null;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { GuildMember, PartialGuildMember } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { memberToTemplateSafeMember } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogMemberLeaveData {
|
||||
member: GuildMember | PartialGuildMember;
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
import { User } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { GuildMember, User } from "discord.js";
|
||||
import { memberToTemplateSafeMember, userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
import { UnknownUser } from "../../../utils";
|
||||
import { userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogMemberMuteData {
|
||||
mod: User | UnknownUser;
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { GuildMember } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { UnknownUser } from "../../../utils";
|
||||
import {
|
||||
memberToTemplateSafeMember,
|
||||
TemplateSafeUnknownMember,
|
||||
TemplateSafeUnknownUser,
|
||||
} from "../../../utils/templateSafeObjects";
|
||||
import { UnknownUser } from "../../../utils";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogMemberMuteExpiredData {
|
||||
member: GuildMember | UnknownUser;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { GuildMember } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { memberToTemplateSafeMember } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogMemberMuteRejoinData {
|
||||
member: GuildMember;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { GuildMember } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { memberToTemplateSafeMember } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogMemberNickChangeData {
|
||||
member: GuildMember;
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { User } from "discord.js";
|
||||
import { userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { UnknownUser } from "../../../utils";
|
||||
import { userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogMemberNoteData {
|
||||
mod: User;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { GuildMember } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { memberToTemplateSafeMember } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogMemberRestoreData {
|
||||
member: GuildMember;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { GuildMember, Role, User } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { memberToTemplateSafeMember, userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogMemberRoleAddData {
|
||||
mod: User | null;
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { GuildMember, Role, User } from "discord.js";
|
||||
import { memberToTemplateSafeMember, userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { UnknownUser } from "../../../utils";
|
||||
import { memberToTemplateSafeMember, userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogMemberRoleChangesData {
|
||||
mod: User | UnknownUser | null;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { GuildMember, Role, User } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { memberToTemplateSafeMember, userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogMemberRoleRemoveData {
|
||||
mod: User | null;
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { User } from "discord.js";
|
||||
import { userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { UnknownUser } from "../../../utils";
|
||||
import { userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogMemberTimedBanData {
|
||||
mod: User | UnknownUser;
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { User } from "discord.js";
|
||||
import { userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { UnknownUser } from "../../../utils";
|
||||
import { userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogMemberTimedMuteData {
|
||||
mod: User | UnknownUser;
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { User } from "discord.js";
|
||||
import { userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { UnknownUser } from "../../../utils";
|
||||
import { userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogMemberTimedUnbanData {
|
||||
mod: User | UnknownUser;
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { User } from "discord.js";
|
||||
import { userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { UnknownUser } from "../../../utils";
|
||||
import { userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogMemberTimedUnmuteData {
|
||||
mod: User;
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
import { Snowflake, User } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { GuildMember, Snowflake, User } from "discord.js";
|
||||
import { memberToTemplateSafeMember, userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
import { UnknownUser } from "../../../utils";
|
||||
import { userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogMemberUnbanData {
|
||||
mod: User | UnknownUser | null;
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
import { User } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { GuildMember, User } from "discord.js";
|
||||
import { memberToTemplateSafeMember, userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
import { UnknownUser } from "../../../utils";
|
||||
import { userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogMemberUnmuteData {
|
||||
mod: User;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { GuildMember } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { memberToTemplateSafeMember } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogMemberWarnData {
|
||||
mod: GuildMember;
|
||||
|
|
|
@ -1,19 +1,19 @@
|
|||
import { GuildTextBasedChannel, User } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { FORMAT_NO_TIMESTAMP, LogsPluginType } from "../types";
|
||||
import moment from "moment-timezone";
|
||||
import { ISavedMessageAttachmentData, SavedMessage } from "../../../data/entities/SavedMessage";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { BaseGuildTextChannel, GuildTextBasedChannel, ThreadChannel, User } from "discord.js";
|
||||
import { UnknownUser, useMediaUrls } from "../../../utils";
|
||||
import { resolveChannelIds } from "../../../utils/resolveChannelIds";
|
||||
import {
|
||||
channelToTemplateSafeChannel,
|
||||
savedMessageToTemplateSafeSavedMessage,
|
||||
userToTemplateSafeUser,
|
||||
} from "../../../utils/templateSafeObjects";
|
||||
import moment from "moment-timezone";
|
||||
import { ISavedMessageAttachmentData, SavedMessage } from "../../../data/entities/SavedMessage";
|
||||
import { TimeAndDatePlugin } from "../../TimeAndDate/TimeAndDatePlugin";
|
||||
import { UnknownUser, useMediaUrls } from "../../../utils";
|
||||
import { resolveChannelIds } from "../../../utils/resolveChannelIds";
|
||||
import { FORMAT_NO_TIMESTAMP, LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogMessageDeleteData {
|
||||
user: User | UnknownUser;
|
||||
|
|
|
@ -1,22 +1,22 @@
|
|||
import { GuildBasedChannel, User } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { SavedMessage } from "../../../data/entities/SavedMessage";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { BaseGuildTextChannel, User } from "discord.js";
|
||||
import { UnknownUser } from "../../../utils";
|
||||
import { resolveChannelIds } from "../../../utils/resolveChannelIds";
|
||||
import {
|
||||
channelToTemplateSafeChannel,
|
||||
savedMessageToTemplateSafeSavedMessage,
|
||||
userToTemplateSafeUser,
|
||||
} from "../../../utils/templateSafeObjects";
|
||||
import { SavedMessage } from "../../../data/entities/SavedMessage";
|
||||
import { UnknownUser } from "../../../utils";
|
||||
import { resolveChannelIds } from "../../../utils/resolveChannelIds";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogMessageDeleteAutoData {
|
||||
message: SavedMessage;
|
||||
user: User | UnknownUser;
|
||||
channel: BaseGuildTextChannel;
|
||||
channel: GuildBasedChannel;
|
||||
messageDate: string;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
import { GuildTextBasedChannel } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { BaseGuildTextChannel, GuildTextBasedChannel, ThreadChannel } from "discord.js";
|
||||
import { channelToTemplateSafeChannel } from "../../../utils/templateSafeObjects";
|
||||
import { resolveChannelIds } from "../../../utils/resolveChannelIds";
|
||||
import { channelToTemplateSafeChannel } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogMessageDeleteBareData {
|
||||
messageId: string;
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
import { GuildTextBasedChannel } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { BaseGuildTextChannel, GuildTextBasedChannel, ThreadChannel } from "discord.js";
|
||||
import { channelToTemplateSafeChannel } from "../../../utils/templateSafeObjects";
|
||||
import { resolveChannelIds } from "../../../utils/resolveChannelIds";
|
||||
import { channelToTemplateSafeChannel } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogMessageDeleteBulkData {
|
||||
count: number;
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
import { GuildTextBasedChannel, User } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { SavedMessage } from "../../../data/entities/SavedMessage";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { BaseGuildTextChannel, GuildTextBasedChannel, ThreadChannel, User } from "discord.js";
|
||||
import { UnknownUser } from "../../../utils";
|
||||
import { resolveChannelIds } from "../../../utils/resolveChannelIds";
|
||||
import {
|
||||
channelToTemplateSafeChannel,
|
||||
savedMessageToTemplateSafeSavedMessage,
|
||||
userToTemplateSafeUser,
|
||||
} from "../../../utils/templateSafeObjects";
|
||||
import { SavedMessage } from "../../../data/entities/SavedMessage";
|
||||
import { UnknownUser } from "../../../utils";
|
||||
import { resolveChannelIds } from "../../../utils/resolveChannelIds";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogMessageEditData {
|
||||
user: User | UnknownUser;
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
import { GuildMember, GuildTextBasedChannel } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { BaseGuildTextChannel, GuildChannel, GuildMember, ThreadChannel } from "discord.js";
|
||||
import { channelToTemplateSafeChannel, memberToTemplateSafeMember } from "../../../utils/templateSafeObjects";
|
||||
import { resolveChannelIds } from "../../../utils/resolveChannelIds";
|
||||
import { channelToTemplateSafeChannel, memberToTemplateSafeMember } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogMessageSpamDetectedData {
|
||||
member: GuildMember;
|
||||
channel: GuildChannel | ThreadChannel;
|
||||
channel: GuildTextBasedChannel;
|
||||
description: string;
|
||||
limit: number;
|
||||
interval: number;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { GuildMember } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { memberToTemplateSafeMember } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogOtherSpamDetectedData {
|
||||
member: GuildMember;
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
import { GuildTextBasedChannel, User } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { BaseGuildTextChannel, GuildTextBasedChannel, ThreadChannel, User } from "discord.js";
|
||||
import { channelToTemplateSafeChannel, userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
import { resolveChannelIds } from "../../../utils/resolveChannelIds";
|
||||
import { channelToTemplateSafeChannel, userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogPostedScheduledMessageData {
|
||||
author: User;
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
import { GuildTextBasedChannel, User } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { BaseGuildTextChannel, GuildTextBasedChannel, ThreadChannel, User } from "discord.js";
|
||||
import { channelToTemplateSafeChannel, userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
import { resolveChannelIds } from "../../../utils/resolveChannelIds";
|
||||
import { channelToTemplateSafeChannel, userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogRepeatedMessageData {
|
||||
author: User;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { Role } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { roleToTemplateSafeRole } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogRoleCreateData {
|
||||
role: Role;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { Role } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { roleToTemplateSafeRole } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogRoleDeleteData {
|
||||
role: Role;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { Role } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { roleToTemplateSafeRole } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogRoleUpdateData {
|
||||
oldRole: Role;
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
import { GuildTextBasedChannel, User } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { BaseGuildTextChannel, GuildTextBasedChannel, ThreadChannel, User } from "discord.js";
|
||||
import { channelToTemplateSafeChannel, userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
import { resolveChannelIds } from "../../../utils/resolveChannelIds";
|
||||
import { channelToTemplateSafeChannel, userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogScheduledMessageData {
|
||||
author: User;
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
import { GuildTextBasedChannel, User } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { BaseGuildTextChannel, GuildTextBasedChannel, ThreadChannel, User } from "discord.js";
|
||||
import { channelToTemplateSafeChannel, userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
import { resolveChannelIds } from "../../../utils/resolveChannelIds";
|
||||
import { channelToTemplateSafeChannel, userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogScheduledRepeatedMessageData {
|
||||
author: User;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogSetAntiraidAutoData {
|
||||
level: string;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { User } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogSetAntiraidUserData {
|
||||
level: string;
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { StageChannel, StageInstance } from "discord.js";
|
||||
import { channelToTemplateSafeChannel, stageToTemplateSafeStage } from "../../../utils/templateSafeObjects";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { resolveChannelIds } from "../../../utils/resolveChannelIds";
|
||||
import { channelToTemplateSafeChannel, stageToTemplateSafeStage } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogStageInstanceCreateData {
|
||||
stageInstance: StageInstance;
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { StageChannel, StageInstance } from "discord.js";
|
||||
import { channelToTemplateSafeChannel, stageToTemplateSafeStage } from "../../../utils/templateSafeObjects";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { resolveChannelIds } from "../../../utils/resolveChannelIds";
|
||||
import { channelToTemplateSafeChannel, stageToTemplateSafeStage } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogStageInstanceDeleteData {
|
||||
stageInstance: StageInstance;
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { StageChannel, StageInstance } from "discord.js";
|
||||
import { channelToTemplateSafeChannel, stageToTemplateSafeStage } from "../../../utils/templateSafeObjects";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { resolveChannelIds } from "../../../utils/resolveChannelIds";
|
||||
import { channelToTemplateSafeChannel, stageToTemplateSafeStage } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogStageInstanceUpdateData {
|
||||
oldStageInstance: StageInstance;
|
||||
oldStageInstance: StageInstance | null;
|
||||
newStageInstance: StageInstance;
|
||||
stageChannel: StageChannel;
|
||||
differenceString: string;
|
||||
|
@ -19,7 +19,7 @@ export function logStageInstanceUpdate(pluginData: GuildPluginData<LogsPluginTyp
|
|||
pluginData,
|
||||
LogType.STAGE_INSTANCE_UPDATE,
|
||||
createTypedTemplateSafeValueContainer({
|
||||
oldStageInstance: stageToTemplateSafeStage(data.oldStageInstance),
|
||||
oldStageInstance: data.oldStageInstance ? stageToTemplateSafeStage(data.oldStageInstance) : null,
|
||||
newStageInstance: stageToTemplateSafeStage(data.newStageInstance),
|
||||
stageChannel: channelToTemplateSafeChannel(data.stageChannel),
|
||||
differenceString: data.differenceString,
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { Sticker } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { stickerToTemplateSafeSticker } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogStickerCreateData {
|
||||
sticker: Sticker;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { Sticker } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { stickerToTemplateSafeSticker } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogStickerDeleteData {
|
||||
sticker: Sticker;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { Sticker } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { stickerToTemplateSafeSticker } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogStickerUpdateData {
|
||||
oldSticker: Sticker;
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
import { AnyThreadChannel } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { ThreadChannel } from "discord.js";
|
||||
import { channelToTemplateSafeChannel } from "../../../utils/templateSafeObjects";
|
||||
import { resolveChannelIds } from "../../../utils/resolveChannelIds";
|
||||
import { channelToTemplateSafeChannel } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogThreadCreateData {
|
||||
thread: ThreadChannel;
|
||||
thread: AnyThreadChannel;
|
||||
}
|
||||
|
||||
export function logThreadCreate(pluginData: GuildPluginData<LogsPluginType>, data: LogThreadCreateData) {
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
import { AnyThreadChannel } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { ThreadChannel } from "discord.js";
|
||||
import { channelToTemplateSafeChannel } from "../../../utils/templateSafeObjects";
|
||||
import { resolveChannelIds } from "../../../utils/resolveChannelIds";
|
||||
import { channelToTemplateSafeChannel } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogThreadDeleteData {
|
||||
thread: ThreadChannel;
|
||||
thread: AnyThreadChannel;
|
||||
}
|
||||
|
||||
export function logThreadDelete(pluginData: GuildPluginData<LogsPluginType>, data: LogThreadDeleteData) {
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
import { AnyThreadChannel } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { ThreadChannel } from "discord.js";
|
||||
import { channelToTemplateSafeChannel } from "../../../utils/templateSafeObjects";
|
||||
import { resolveChannelIds } from "../../../utils/resolveChannelIds";
|
||||
import { channelToTemplateSafeChannel } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogThreadUpdateData {
|
||||
oldThread: ThreadChannel;
|
||||
newThread: ThreadChannel;
|
||||
oldThread: AnyThreadChannel;
|
||||
newThread: AnyThreadChannel;
|
||||
differenceString: string;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,20 +1,20 @@
|
|||
import { GuildMember, User, VoiceBasedChannel } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { BaseGuildVoiceChannel, GuildMember, User } from "discord.js";
|
||||
import { resolveChannelIds } from "../../../utils/resolveChannelIds";
|
||||
import {
|
||||
channelToTemplateSafeChannel,
|
||||
memberToTemplateSafeMember,
|
||||
userToTemplateSafeUser,
|
||||
} from "../../../utils/templateSafeObjects";
|
||||
import { resolveChannelIds } from "../../../utils/resolveChannelIds";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogVoiceChannelForceDisconnectData {
|
||||
mod: User;
|
||||
member: GuildMember;
|
||||
oldChannel: BaseGuildVoiceChannel;
|
||||
oldChannel: VoiceBasedChannel;
|
||||
}
|
||||
|
||||
export function logVoiceChannelForceDisconnect(
|
||||
|
|
|
@ -1,21 +1,21 @@
|
|||
import { GuildMember, User, VoiceBasedChannel } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { BaseGuildVoiceChannel, GuildMember, User } from "discord.js";
|
||||
import { resolveChannelIds } from "../../../utils/resolveChannelIds";
|
||||
import {
|
||||
channelToTemplateSafeChannel,
|
||||
memberToTemplateSafeMember,
|
||||
userToTemplateSafeUser,
|
||||
} from "../../../utils/templateSafeObjects";
|
||||
import { resolveChannelIds } from "../../../utils/resolveChannelIds";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogVoiceChannelForceMoveData {
|
||||
mod: User;
|
||||
member: GuildMember;
|
||||
oldChannel: BaseGuildVoiceChannel;
|
||||
newChannel: BaseGuildVoiceChannel;
|
||||
oldChannel: VoiceBasedChannel;
|
||||
newChannel: VoiceBasedChannel;
|
||||
}
|
||||
|
||||
export function logVoiceChannelForceMove(
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
import { GuildMember, VoiceBasedChannel } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { BaseGuildVoiceChannel, GuildMember } from "discord.js";
|
||||
import { channelToTemplateSafeChannel, memberToTemplateSafeMember } from "../../../utils/templateSafeObjects";
|
||||
import { resolveChannelIds } from "../../../utils/resolveChannelIds";
|
||||
import { channelToTemplateSafeChannel, memberToTemplateSafeMember } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogVoiceChannelJoinData {
|
||||
member: GuildMember;
|
||||
channel: BaseGuildVoiceChannel;
|
||||
channel: VoiceBasedChannel;
|
||||
}
|
||||
|
||||
export function logVoiceChannelJoin(pluginData: GuildPluginData<LogsPluginType>, data: LogVoiceChannelJoinData) {
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
import { GuildMember, VoiceBasedChannel } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { BaseGuildVoiceChannel, GuildMember } from "discord.js";
|
||||
import { channelToTemplateSafeChannel, memberToTemplateSafeMember } from "../../../utils/templateSafeObjects";
|
||||
import { resolveChannelIds } from "../../../utils/resolveChannelIds";
|
||||
import { channelToTemplateSafeChannel, memberToTemplateSafeMember } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogVoiceChannelLeaveData {
|
||||
member: GuildMember;
|
||||
channel: BaseGuildVoiceChannel;
|
||||
channel: VoiceBasedChannel;
|
||||
}
|
||||
|
||||
export function logVoiceChannelLeave(pluginData: GuildPluginData<LogsPluginType>, data: LogVoiceChannelLeaveData) {
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
import { GuildMember, VoiceBasedChannel } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { log } from "../util/log";
|
||||
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { BaseGuildVoiceChannel, GuildMember } from "discord.js";
|
||||
import { channelToTemplateSafeChannel, memberToTemplateSafeMember } from "../../../utils/templateSafeObjects";
|
||||
import { resolveChannelIds } from "../../../utils/resolveChannelIds";
|
||||
import { channelToTemplateSafeChannel, memberToTemplateSafeMember } from "../../../utils/templateSafeObjects";
|
||||
import { LogsPluginType } from "../types";
|
||||
import { log } from "../util/log";
|
||||
|
||||
interface LogVoiceChannelMoveData {
|
||||
member: GuildMember;
|
||||
oldChannel: BaseGuildVoiceChannel;
|
||||
newChannel: BaseGuildVoiceChannel;
|
||||
oldChannel: VoiceBasedChannel;
|
||||
newChannel: VoiceBasedChannel;
|
||||
}
|
||||
|
||||
export function logVoiceChannelMove(pluginData: GuildPluginData<LogsPluginType>, data: LogVoiceChannelMoveData) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue