mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 12:21:00 -05:00
bru #1
This commit is contained in:
parent
c7201791af
commit
6f2541f892
@ -4,6 +4,7 @@ export default {
|
|||||||
name: 'guildMemberAdd',
|
name: 'guildMemberAdd',
|
||||||
execute: async(client:TClient, member:Discord.GuildMember)=>{
|
execute: async(client:TClient, member:Discord.GuildMember)=>{
|
||||||
if (member.partial) return;
|
if (member.partial) return;
|
||||||
|
if (member.guild?.id != client.config.mainServer.id) return;
|
||||||
const index = member.guild.memberCount;
|
const index = member.guild.memberCount;
|
||||||
const suffix = ((index)=>{
|
const suffix = ((index)=>{
|
||||||
const numbers = index.toString().split('').reverse(); // eg 1850 --> [0,5,8,1]
|
const numbers = index.toString().split('').reverse(); // eg 1850 --> [0,5,8,1]
|
||||||
@ -32,4 +33,4 @@ export default {
|
|||||||
);
|
);
|
||||||
(client.channels.resolve(client.config.mainServer.channels.logs) as Discord.TextChannel).send({embeds: [embed1]})
|
(client.channels.resolve(client.config.mainServer.channels.logs) as Discord.TextChannel).send({embeds: [embed1]})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user