Skip to content

Commit

Permalink
Definitive fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fowled committed Jan 6, 2023
1 parent 40aa8e0 commit 9490809
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/events/guildMemberAdd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = {

const welcomechannel = await supabase.from("guilds").select().like("guild_id", member.guild.id).single();

if (!welcomechannel.data.guild_id) return;
if (!welcomechannel.data.welcome) return;

const channel = (await Client.channels.fetch(welcomechannel.data.welcome)) as Discord.TextChannel;
const fetchNumberOfMembers = member.guild.memberCount;
Expand Down
2 changes: 1 addition & 1 deletion app/src/events/guildMemberRemove.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = {

const welcomechannel = await supabase.from("guilds").select().like("guild_id", member.guild.id).single();

if (!welcomechannel.data.guild_id) return;
if (!welcomechannel.data.welcome) return;

const channel = (await Client.channels.fetch(welcomechannel.data.welcome)) as Discord.TextChannel;
const fetchNumberOfMembers = member.guild.memberCount;
Expand Down

0 comments on commit 9490809

Please sign in to comment.