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

Add forum channel to addcourse command #338

Open
wants to merge 2 commits into
base: dev-fixes
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/commands/admin/addcourse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ export default class extends Command {
await this.createTextChannel(interaction.guild, `${course}_homework`, standardPerms, categoryChannel.id, reason);
await this.createTextChannel(interaction.guild, `${course}_labs`, standardPerms, categoryChannel.id, reason);
await this.createTextChannel(interaction.guild, `${course}_projects`, standardPerms, categoryChannel.id, reason);
await interaction.guild.channels.create(`${course}_help`, {
type: 'GUILD_FORUM',
parent: categoryChannel.id,
topic: '',
permissionOverwrites: standardPerms,
reason: reason
});
const staffChannel = await interaction.guild.channels.create(`${course}_staff`, {
type: 'GUILD_TEXT',
parent: categoryChannel.id,
Expand Down