Skip to content

Commit

Permalink
Fixed issue not notifying when updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
Maseshi committed Feb 13, 2022
1 parent af257c8 commit 4d74a2d
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion source/events/channel/channelUpdate.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const catchError = require("../../extras/catchError");

module.exports = (client, oldChannel, newChannel) => {
const db = getDatabase();
const childRef = child(ref(db, "Shioru/apps/discord/guilds"), channel.guild.id);
const childRef = child(ref(db, "Shioru/apps/discord/guilds"), newChannel.guild.id);

get(child(childRef, "config")).then((snapshot) => {
if (snapshot.exists()) {
Expand Down
2 changes: 1 addition & 1 deletion source/events/emoji/emojiCreate.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const catchError = require("../../extras/catchError");

module.exports = (client, emoji) => {
const db = getDatabase();
const childRef = child(ref(db, "Shioru/apps/discord/guilds"), channel.guild.id);
const childRef = child(ref(db, "Shioru/apps/discord/guilds"), emoji.guild.id);

get(child(childRef, "config")).then((snapshot) => {
if (snapshot.exists()) {
Expand Down
2 changes: 1 addition & 1 deletion source/events/emoji/emojiDelete.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const { getDatabase, ref, child, get, set } = require("firebase/database");const

module.exports = (client, emoji) => {
const db = getDatabase();
const childRef = child(ref(db, "Shioru/apps/discord/guilds"), channel.guild.id);
const childRef = child(ref(db, "Shioru/apps/discord/guilds"), emoji.guild.id);

get(child(childRef, "config")).then((snapshot) => {
if (snapshot.exists()) {
Expand Down
2 changes: 1 addition & 1 deletion source/events/emoji/emojiUpdate.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const catchError = require("../../extras/catchError");

module.exports = (client, oldEmoji, newEmoji) => {
const db = getDatabase();
const childRef = child(ref(db, "Shioru/apps/discord/guilds"), channel.guild.id);
const childRef = child(ref(db, "Shioru/apps/discord/guilds"), emoji.guild.id);

get(child(childRef, "config")).then((snapshot) => {
if (snapshot.exists()) {
Expand Down
2 changes: 1 addition & 1 deletion source/events/guild/guildMemberAdd.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = (client, member) => {
if (member.user.bot) return;

const db = getDatabase();
const childRef = child(ref(db, "Shioru/apps/discord/guilds"), channel.guild.id);
const childRef = child(ref(db, "Shioru/apps/discord/guilds"), member.guild.id);

get(child(childRef, "config")).then((snapshot) => {
if (snapshot.exists()) {
Expand Down
2 changes: 1 addition & 1 deletion source/events/guild/guildMemberRemove.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = (client, member) => {
if (member.user.bot) return;

const db = getDatabase();
const childRef = child(ref(db, "Shioru/apps/discord/guilds"), channel.guild.id);
const childRef = child(ref(db, "Shioru/apps/discord/guilds"), member.guild.id);

get(child(childRef, "config")).then((snapshot) => {
if (snapshot.exists()) {
Expand Down

0 comments on commit 4d74a2d

Please sign in to comment.