aboutsummaryrefslogtreecommitdiff
path: root/src/commands/moderation/unblock.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-12-30 16:55:37 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-12-30 16:55:37 -0500
commit83db032fb91996c926a5d007a9e5fa4abed65871 (patch)
tree28081718636b6c41aea89018504f3f7e4f837903 /src/commands/moderation/unblock.ts
parentf0a9f894575871d498447c5de2b5f0f826b117b7 (diff)
downloadtanzanite-83db032fb91996c926a5d007a9e5fa4abed65871.tar.gz
tanzanite-83db032fb91996c926a5d007a9e5fa4abed65871.tar.bz2
tanzanite-83db032fb91996c926a5d007a9e5fa4abed65871.zip
add timeout command and fix some other moderation commands
Diffstat (limited to 'src/commands/moderation/unblock.ts')
-rw-r--r--src/commands/moderation/unblock.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/commands/moderation/unblock.ts b/src/commands/moderation/unblock.ts
index f9f069b..4cc8b49 100644
--- a/src/commands/moderation/unblock.ts
+++ b/src/commands/moderation/unblock.ts
@@ -18,7 +18,7 @@ export default class UnblockCommand extends BushCommand {
category: 'moderation',
description: 'Allows a user to use a channel.',
usage: ['unblock <member> [reason]'],
- examples: ['unblock IRONM00N 2h bad jokes'],
+ examples: ['unblock IRONM00N nvm your jokes are funny'],
args: [
{
id: 'user',
@@ -78,13 +78,13 @@ export default class UnblockCommand extends BushCommand {
const parsedReason = args.reason ?? '';
- const responseCode = await member.unblock({
+ const responseCode = await member.bushUnblock({
reason: parsedReason,
moderator: message.member,
channel: message.channel
});
- const responseMessage = () => {
+ const responseMessage = (): string => {
const victim = util.format.input(member.user.tag);
switch (responseCode) {
case 'missing permissions':