You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* rolesPermOverride command is a script or one-time use command to attach every course role with permissions to view and send messages in any text channel with identical name. Please review and test before mergin
* BUGGY CODE but still progress over the previous commit, I will come back this evening to fix
* rolesPermOverride command: now admin-only command, and I've tested it for various cases regarding if a channel exists, if a role exists for a channel that doesnt exist, if there are two channels with the same name as a role and vice versa, and it works without error
* course.js: removed code to create individual user permission overwrites in each channel
---------
Co-authored-by: AcdSoftCo <106219586+AcdSoftCo@users.noreply.github.com>
// Make sure that the channel exists, and is a text channel
137
-
if(channel===undefined){
138
-
returnawaitinteraction.reply({
139
-
content: `❌ | The course chat for \`${course}\` does not exist. If you'd like for it to be created, please raise a ticket in <#${MODERATION_REQUEST_CHANNEL}>.`,
140
-
ephemeral: true,
141
-
});
142
-
}elseif(channel.type!=="GUILD_TEXT"){
143
-
returnawaitinteraction.reply({
144
-
content: `❌ | The course chat for \`${course}\` is not a text channel.`,
0 commit comments