There was an error while loading. Please reload this page.
1 parent 8b5f312 commit c3a3fddCopy full SHA for c3a3fdd
1 file changed
src/components/redirect.ts
@@ -44,7 +44,8 @@ export default class Redirect extends BotComponent {
44
assert(command.channel);
45
assert(command.channel instanceof Discord.GuildChannel);
46
const initial_permissions = command.channel.permissionOverwrites.cache.clone();
47
- await command.channel.permissionOverwrites.edit(this.wheatley.guild.id, { SendMessages: false });
+ await command.channel.permissionOverwrites.edit(this.wheatley.guild.roles.everyone.id, { SendMessages: false });
48
+ await command.channel.permissionOverwrites.edit(this.wheatley.roles.moderators.id, { SendMessages: true });
49
await command.reply({
50
embeds: [
51
new Discord.EmbedBuilder()
0 commit comments