aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-06-02 18:08:43 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-06-02 18:08:43 -0400
commit0d87396461833b23aaaf733aaa6f03e4889f4224 (patch)
treecb319dcb6c18ae40429d23180fe8971240241122 /src/lib
parent815fbcd63ad68b41e9107967d95230385597ec41 (diff)
downloadtanzanite-0d87396461833b23aaaf733aaa6f03e4889f4224.tar.gz
tanzanite-0d87396461833b23aaaf733aaa6f03e4889f4224.tar.bz2
tanzanite-0d87396461833b23aaaf733aaa6f03e4889f4224.zip
fix: allow vc channels to be locked
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/extensions/discord.js/BushGuild.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/extensions/discord.js/BushGuild.ts b/src/lib/extensions/discord.js/BushGuild.ts
index 80755bc..a93e35f 100644
--- a/src/lib/extensions/discord.js/BushGuild.ts
+++ b/src/lib/extensions/discord.js/BushGuild.ts
@@ -4,6 +4,7 @@ import {
BushGuildChannelManager,
BushGuildMemberManager,
BushMessage,
+ BushVoiceChannel,
dmResponse,
permissionsResponse,
punishmentEntryRemove,
@@ -408,7 +409,7 @@ export class BushGuild extends Guild {
const ret = await (async (): Promise<LockdownResponse> => {
for (const _channel of mappedChannels) {
const channel = _channel!;
- if (!channel.isText() && !channel.isThread()) {
+ if (!channel.isTextBased()) {
errors.set(channel.id, new Error('wrong channel type'));
success.set(channel.id, false);
continue;
@@ -761,7 +762,7 @@ export interface LockdownOptions {
/**
* A specific channel to lockdown
*/
- channel?: BushThreadChannel | BushNewsChannel | BushTextChannel;
+ channel?: BushThreadChannel | BushNewsChannel | BushTextChannel | BushVoiceChannel;
/**
* Whether or not to unlock the channel(s) instead of locking them