aboutsummaryrefslogtreecommitdiff
path: root/src/commands/admin
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-09-30 16:48:07 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-09-30 16:48:07 -0400
commit42d2e2bf01b5debd4ecf605297f925ad5da7deb3 (patch)
treedaf6678542cd8735f9930086f7a1e76ae6884e4e /src/commands/admin
parent4ad90b19851a0853287c45d326a28be535b1607f (diff)
downloadtanzanite-42d2e2bf01b5debd4ecf605297f925ad5da7deb3.tar.gz
tanzanite-42d2e2bf01b5debd4ecf605297f925ad5da7deb3.tar.bz2
tanzanite-42d2e2bf01b5debd4ecf605297f925ad5da7deb3.zip
I did this 2 weeks ago idk what I did
Diffstat (limited to 'src/commands/admin')
-rw-r--r--src/commands/admin/channelPermissions.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/admin/channelPermissions.ts b/src/commands/admin/channelPermissions.ts
index 3b8c157..993e811 100644
--- a/src/commands/admin/channelPermissions.ts
+++ b/src/commands/admin/channelPermissions.ts
@@ -81,8 +81,8 @@ export default class ChannelPermissionsCommand extends BushCommand {
const failure = failedChannels.map((e) => `<#${e.id}>`).join(' ');
if (failure.length > 2000) {
const paginate: MessageEmbed[] = [];
- for (let i = 0; i < failure.length; i += 2000) {
- paginate.push(new MessageEmbed().setDescription(failure.substring(i, Math.min(failure.length, i + 2000))));
+ for (let i = 0; i < failure.length; i += 4000) {
+ paginate.push(new MessageEmbed().setDescription(failure.substring(i, Math.min(failure.length, i + 4000))));
}
const normalMessage = `Finished changing perms! Failed channels:`;
return await client.util.buttonPaginate(message, paginate, normalMessage);