Skip to content

Commit

Permalink
Fixed issue with category creation
Browse files Browse the repository at this point in the history
  • Loading branch information
The0mikkel committed Nov 1, 2023
1 parent a11a98a commit ed9374e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/team/TeamConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ export default class TeamConfig extends TeamCommand {
case `channel-category-text`:
let categoriesText = [];

for (let index = 0; index < 5; index++) {
for (let index = 0; index < this.allowedCategories; index++) {
let channel = interaction.options.getChannel(`category-${index + 1}`);
if (channel) {
if (channel.type !== ChannelType.GuildCategory) {
Expand Down Expand Up @@ -732,7 +732,7 @@ export default class TeamConfig extends TeamCommand {
case `channel-category-voice`:
let categoriesVoice = [];

for (let index = 0; index < 5; index++) {
for (let index = 0; index < this.allowedCategories; index++) {
let channel = interaction.options.getChannel(`category-${index + 1}`);
if (channel) {
if (channel.type !== ChannelType.GuildCategory) {
Expand Down

0 comments on commit ed9374e

Please sign in to comment.