aboutsummaryrefslogtreecommitdiff
path: root/src/commands/info
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/info')
-rw-r--r--src/commands/info/avatar.ts4
-rw-r--r--src/commands/info/color.ts2
-rw-r--r--src/commands/info/guildInfo.ts4
-rw-r--r--src/commands/info/userInfo.ts2
4 files changed, 4 insertions, 8 deletions
diff --git a/src/commands/info/avatar.ts b/src/commands/info/avatar.ts
index 4f7449b..eefdc02 100644
--- a/src/commands/info/avatar.ts
+++ b/src/commands/info/avatar.ts
@@ -1,4 +1,3 @@
-import { Constants } from 'discord-akairo';
import { MessageEmbed, User } from 'discord.js';
import { BushCommand, BushMessage, BushSlashMessage } from '../../lib';
@@ -15,8 +14,7 @@ export default class AvatarCommand extends BushCommand {
args: [
{
id: 'user',
- type: Constants.ArgumentTypes.USER,
- match: Constants.ArgumentMatches.PHRASE,
+ type: 'user',
prompt: {
start: 'Who would you like to see the avatar of?',
retry: '{error} Choose a valid user.',
diff --git a/src/commands/info/color.ts b/src/commands/info/color.ts
index 61790ad..e995d79 100644
--- a/src/commands/info/color.ts
+++ b/src/commands/info/color.ts
@@ -24,7 +24,7 @@ export default class ColorCommand extends BushCommand {
args: [
{
id: 'color',
- type: Argument.union(isValidTinyColor, 'role', 'member'),
+ customType: Argument.union(isValidTinyColor, 'role', 'member'),
prompt: {
start: 'What color code, role, or user would you like to find the color of?',
retry: '{error} Choose a valid color, role, or member.'
diff --git a/src/commands/info/guildInfo.ts b/src/commands/info/guildInfo.ts
index 577086b..6ce4d76 100644
--- a/src/commands/info/guildInfo.ts
+++ b/src/commands/info/guildInfo.ts
@@ -1,4 +1,3 @@
-import { Argument, Constants } from 'discord-akairo';
import { BaseGuildVoiceChannel, Guild, GuildPreview, MessageEmbed, Snowflake, Vanity } from 'discord.js';
import { BushCommand, BushMessage, BushSlashMessage } from '../../lib';
@@ -15,8 +14,7 @@ export default class GuildInfoCommand extends BushCommand {
args: [
{
id: 'guild',
- type: Argument.union(Constants.ArgumentTypes.GUILD, Constants.ArgumentTypes.BIGINT),
- match: Constants.ArgumentMatches.PHRASE,
+ customType: util.arg.union('guild', 'bigint'),
prompt: {
start: 'What server would you like to find information about?',
retry: '{error} Choose a valid server to find information about.',
diff --git a/src/commands/info/userInfo.ts b/src/commands/info/userInfo.ts
index e36e92b..cecf5ec 100644
--- a/src/commands/info/userInfo.ts
+++ b/src/commands/info/userInfo.ts
@@ -1,7 +1,7 @@
import { BushCommand, BushMessage, BushSlashMessage } from '@lib';
import { GuildMember, MessageEmbed } from 'discord.js';
-// TODO: Allow looking up a user not in the guild and not cached
+// TODO: Allow looking up a user not in the guild and not cached (if possible)
// TODO: Re-Implement Status Emojis
// TODO: Add bot information
export default class UserInfoCommand extends BushCommand {