Skip to content

Commit

Permalink
⭐ Fixed starboard toggling
Browse files Browse the repository at this point in the history
  • Loading branch information
wiki-Bird committed Jul 25, 2024
1 parent 9b09a79 commit 0154428
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/events/messageReactionAdd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const messageReactionAdd: Event<[MessageReaction | PartialMessageReaction, User
// Access FirebaseDB and get state, minstars, emote, and channel
const starboardDB = await ref.child("config").child(message.guildId).child("starboard").get();

const enabled = Object.values(starboardDB.child("starboardon").val() || {})[0] || "true";
const enabled = Object.values(starboardDB.child("starboardon").val() || {})[0] || "t";
const starboardChannelID = Object.keys(starboardDB.child("channel").val() || {})[0] || "";

// If server doesn't have starboard enabled, or a starboard channel, return
Expand Down

0 comments on commit 0154428

Please sign in to comment.