mirror of
https://github.com/DarthKilroy/Spot.git
synced 2026-02-17 00:00:10 +00:00
Add create jira bug
This commit is contained in:
parent
6c8cf194a7
commit
1a7822ea69
13 changed files with 418 additions and 97 deletions
12
events/guild-member-add.ts
Normal file
12
events/guild-member-add.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import { GuildMember, TextBasedChannel } from "discord.js";
|
||||
import { client } from "../bot";
|
||||
import config from "../config";
|
||||
|
||||
export const onGuildMemberAdd = async (member: GuildMember) => {
|
||||
const msg = `Welcome, <@${member.id}>! If you joined for any specific support questions `
|
||||
+ `please check out <#863171642905591830> first to see if your issue is known, `
|
||||
+ `and make sure that your app is up-to-date before posting.`;
|
||||
|
||||
const channel: TextBasedChannel | null = await client.channels.fetch(config.channels.joins) as TextBasedChannel;
|
||||
channel?.send(msg);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue