More rework progress, remove all eris imports
This commit is contained in:
parent
8f7a6510eb
commit
52839cc9f3
181 changed files with 352 additions and 343 deletions
|
@ -1,6 +1,5 @@
|
|||
import { locateUserEvt } from "../types";
|
||||
import { sendAlerts } from "../utils/sendAlerts";
|
||||
import { TextableChannel, VoiceChannel } from "eris";
|
||||
|
||||
export const ChannelJoinAlertsEvt = locateUserEvt({
|
||||
event: "voiceChannelJoin",
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import { VoiceChannel } from "eris";
|
||||
|
||||
export async function createOrReuseInvite(vc: VoiceChannel) {
|
||||
const existingInvites = await vc.getInvites();
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import { Member, TextableChannel } from "eris";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LocateUserPluginType } from "../types";
|
||||
import { sendErrorMessage } from "../../../pluginUtils";
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue