3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-22 09:15:03 +00:00

Finish preliminary rework, ready to test

This commit is contained in:
Dark 2021-06-02 04:07:50 +02:00
parent 293a850075
commit c99e745f89
177 changed files with 854 additions and 707 deletions

View file

@ -4,6 +4,7 @@ import { createChunkedMessage, stripObjectToScalars } from "../../../utils";
import { LogType } from "../../../data/LogType";
import { sendDM } from "../../../utils/sendDM";
import { TextChannel } from "discord.js";
export const SendWelcomeMessageEvt = welcomeMessageEvt({
event: "guildMemberAdd",
@ -55,7 +56,7 @@ export const SendWelcomeMessageEvt = welcomeMessageEvt({
}
if (config.send_to_channel) {
const channel = meta.args.guild.channels.cache.get(config.send_to_channel);
const channel = meta.args.member.guild.channels.cache.get(config.send_to_channel);
if (!channel || !(channel instanceof TextChannel)) return;
try {