Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[emojiUtility] raising guild does not have any more emote slots when the guild has emote slots #521

Open
skittles9823 opened this issue Jul 5, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@skittles9823
Copy link

skittles9823 commented Jul 5, 2021

Describe the bug
${guild.name} does not have any more emote slots get's raised when server does indeed have emoji slots

To Reproduce
Steps to reproduce the behavior:
In a server with 195 static emotes and 111 animated emotes with lvl 3 boost on attempt to clone an emote the error saying we've reached max emotes get's raised.

Expected behavior
Emote get's cloned successfully.

Desktop (please complete the following information):

  • OS: Windows
  • Powercord version: 6d2ce66

After trying to troubleshoot I tried messing with the plugin code, commenting out the error, making it print stuff, etc.

After commenting out this:

if (this.getEmojis(guild.id, emoji.animated).length >= this.getMaxEmojiSlots(guild.id)) {
  return this.replyError(`**${guild.name}** does not have any more emote slots`);
}

cloning an emoji worked, so I then moved on to try to find what exactly it said the max emojis we could use was
So I did this:

return this.replyError(`**${guild.name}** does not have any more emote slots. Max: ${this.getMaxEmojiSlots(guild.id)} Has: ${this.getEmojis(guild.id).length} Has animated: ${this.getEmojis(guild.id, emoji.animated).length}`);

Which returned this:
${guild.name} does not have any more emote slots. Max: 250 Has: 376 Has animated: 265

Which doesn't make sense at all as we have 195 static emojis (55 free) 111 animated emojis (139 free)

I'm sure I messed up with my printing of the emoji slots as I don't know js and I've not looked into powercord modules before but I hope my tinkering has helped a bit with debugging the issue.

@skittles9823 skittles9823 added the bug Something isn't working label Jul 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant