mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 20:35:02 +00:00
Finish preliminary rework, ready to test
This commit is contained in:
parent
57893e7f76
commit
d0a1beb809
177 changed files with 854 additions and 707 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue