Finish preliminary rework, ready to test

This commit is contained in:
Dark 2021-06-02 04:07:50 +02:00
parent 57893e7f76
commit d0a1beb809
No known key found for this signature in database
GPG key ID: 2CD6ACB6B0A87B8A
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 {