Rename !info to !user/!userinfo
This commit is contained in:
parent
e8ff297368
commit
7ad2458fd9
3 changed files with 10 additions and 7 deletions
|
@ -10,7 +10,7 @@ import { RolesCmd } from "./commands/RolesCmd";
|
|||
import { LevelCmd } from "./commands/LevelCmd";
|
||||
import { SearchCmd } from "./commands/SearchCmd";
|
||||
import { BanSearchCmd } from "./commands/BanSearchCmd";
|
||||
import { InfoCmd } from "./commands/InfoCmd";
|
||||
import { UserInfoCmd } from "./commands/UserInfoCmd";
|
||||
import { NicknameResetCmd } from "./commands/NicknameResetCmd";
|
||||
import { NicknameCmd } from "./commands/NicknameCmd";
|
||||
import { PingCmd } from "./commands/PingCmd";
|
||||
|
@ -42,6 +42,7 @@ const defaultOptions: PluginOptions<UtilityPluginType> = {
|
|||
can_invite: false,
|
||||
can_channel: false,
|
||||
can_message: false,
|
||||
can_userinfo: false,
|
||||
can_reload_guild: false,
|
||||
can_nickname: false,
|
||||
can_ping: false,
|
||||
|
@ -68,6 +69,7 @@ const defaultOptions: PluginOptions<UtilityPluginType> = {
|
|||
can_invite: true,
|
||||
can_channel: true,
|
||||
can_message: true,
|
||||
can_userinfo: true,
|
||||
can_nickname: true,
|
||||
can_vcmove: true,
|
||||
can_help: true,
|
||||
|
@ -101,7 +103,7 @@ export const UtilityPlugin = zeppelinPlugin<UtilityPluginType>()("utility", {
|
|||
commands: [
|
||||
SearchCmd,
|
||||
BanSearchCmd,
|
||||
InfoCmd,
|
||||
UserInfoCmd,
|
||||
LevelCmd,
|
||||
RolesCmd,
|
||||
ServerCmd,
|
||||
|
|
|
@ -3,11 +3,11 @@ import { commandTypeHelpers as ct } from "../../../commandTypes";
|
|||
import { getUserInfoEmbed } from "../functions/getUserInfoEmbed";
|
||||
import { sendErrorMessage } from "../../../pluginUtils";
|
||||
|
||||
export const InfoCmd = utilityCmd({
|
||||
trigger: "info",
|
||||
description: "Show basic information about a user",
|
||||
usage: "!info 106391128718245888",
|
||||
permission: "can_info",
|
||||
export const UserInfoCmd = utilityCmd({
|
||||
trigger: ["user", "userinfo"],
|
||||
description: "Show information about a user",
|
||||
usage: "!user 106391128718245888",
|
||||
permission: "can_userinfo",
|
||||
|
||||
signature: {
|
||||
user: ct.resolvedUserLoose({ required: false }),
|
|
@ -16,6 +16,7 @@ export const ConfigSchema = t.type({
|
|||
can_invite: t.boolean,
|
||||
can_channel: t.boolean,
|
||||
can_message: t.boolean,
|
||||
can_userinfo: t.boolean,
|
||||
can_reload_guild: t.boolean,
|
||||
can_nickname: t.boolean,
|
||||
can_ping: t.boolean,
|
||||
|
|
Loading…
Add table
Reference in a new issue