Temprarily disable reply on pagination, made a small optimization to prefix handler

This commit is contained in:
Essem 2021-08-07 15:28:39 -05:00
parent e44f5ba59d
commit b6f28ece76
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
2 changed files with 10 additions and 8 deletions

View file

@ -16,8 +16,9 @@ module.exports = async (client, cluster, worker, ipc, message) => {
let prefixCandidate;
if (message.channel.guild) {
if (collections.prefixCache.has(message.channel.guild.id)) {
prefixCandidate = collections.prefixCache.get(message.channel.guild.id);
const cachedPrefix = collections.prefixCache.get(message.channel.guild.id);
if (cachedPrefix) {
prefixCandidate = cachedPrefix;
} else {
let guildDB = message.channel.guild ? await database.getGuild(message.channel.guild.id) : null;
if (message.channel.guild && !(guildDB && guildDB.disabled)) {