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

insertChannelInOrder fails on enabling community mode #1226

Open
TheArcaneBrony opened this issue Oct 15, 2024 · 1 comment
Open

insertChannelInOrder fails on enabling community mode #1226

TheArcaneBrony opened this issue Oct 15, 2024 · 1 comment

Comments

@TheArcaneBrony
Copy link
Member

[Error] 400 /api/v9/guilds/1295695667913564212
 TypeError: Cannot read properties of undefined (reading 'remove')
    at Guild.insertChannelInOrder (/home/Rory/git/spacebar/server/dist/util/entities/Guild.js:211:32)
    at /home/Rory/git/spacebar/server/dist/api/routes/guilds/#guild_id/index.js:125:28 
body: [Object: null prototype] {
  features: [ 'COMMUNITY' ],
  verification_level: 1,
  default_message_notifications: 1,
  explicit_content_filter: 2,
  rules_channel_id: '1',
  public_updates_channel_id: '1'
}

guild.ts:445:
guild.channel_ordering.remove(channel_id);

@TheArcaneBrony
Copy link
Member Author

Can be reproduced by following these steps in discord@210901:
Create guild
Set up community
Have server create "moderator only" channel
-> Throws on save

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant