More rework progress, remove all eris imports

This commit is contained in:
Dark 2021-06-01 02:05:55 +02:00
parent 8f7a6510eb
commit 52839cc9f3
No known key found for this signature in database
GPG key ID: 2CD6ACB6B0A87B8A
181 changed files with 352 additions and 343 deletions

View file

@ -1,6 +1,5 @@
import { locateUserEvt } from "../types";
import { sendAlerts } from "../utils/sendAlerts";
import { TextableChannel, VoiceChannel } from "eris";
export const ChannelJoinAlertsEvt = locateUserEvt({
event: "voiceChannelJoin",

View file

@ -1,5 +1,3 @@
import { VoiceChannel } from "eris";
export async function createOrReuseInvite(vc: VoiceChannel) {
const existingInvites = await vc.getInvites();

View file

@ -1,4 +1,3 @@
import { Member, TextableChannel } from "eris";
import { GuildPluginData } from "knub";
import { LocateUserPluginType } from "../types";
import { sendErrorMessage } from "../../../pluginUtils";

View file

@ -2,7 +2,7 @@ import { GuildPluginData } from "knub";
import { LocateUserPluginType } from "../types";
import { resolveMember } from "../../../utils";
import { sendWhere } from "./sendWhere";
import { TextableChannel } from "eris";
import { moveMember } from "./moveMember";
export async function sendAlerts(pluginData: GuildPluginData<LocateUserPluginType>, userId: string) {

View file

@ -1,4 +1,3 @@
import { Invite, Member, TextableChannel, VoiceChannel } from "eris";
import { getInviteLink } from "knub/dist/helpers";
import { createOrReuseInvite } from "./createOrReuseInvite";
import { GuildPluginData } from "knub";
@ -12,7 +11,7 @@ export async function sendWhere(
prepend: string,
) {
const voice = member.voiceState.channelID
? (pluginData.guild.channels.get(member.voiceState.channelID) as VoiceChannel)
? (pluginData.guild.channels.cache.get(member.voiceState.channelID) as VoiceChannel)
: null;
if (voice == null) {