Rename !info to !user/!userinfo

This commit is contained in:
Dragory 2020-08-06 00:48:29 +03:00
parent e8ff297368
commit 7ad2458fd9
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
3 changed files with 10 additions and 7 deletions

View file

@ -10,7 +10,7 @@ import { RolesCmd } from "./commands/RolesCmd";
import { LevelCmd } from "./commands/LevelCmd"; import { LevelCmd } from "./commands/LevelCmd";
import { SearchCmd } from "./commands/SearchCmd"; import { SearchCmd } from "./commands/SearchCmd";
import { BanSearchCmd } from "./commands/BanSearchCmd"; import { BanSearchCmd } from "./commands/BanSearchCmd";
import { InfoCmd } from "./commands/InfoCmd"; import { UserInfoCmd } from "./commands/UserInfoCmd";
import { NicknameResetCmd } from "./commands/NicknameResetCmd"; import { NicknameResetCmd } from "./commands/NicknameResetCmd";
import { NicknameCmd } from "./commands/NicknameCmd"; import { NicknameCmd } from "./commands/NicknameCmd";
import { PingCmd } from "./commands/PingCmd"; import { PingCmd } from "./commands/PingCmd";
@ -42,6 +42,7 @@ const defaultOptions: PluginOptions<UtilityPluginType> = {
can_invite: false, can_invite: false,
can_channel: false, can_channel: false,
can_message: false, can_message: false,
can_userinfo: false,
can_reload_guild: false, can_reload_guild: false,
can_nickname: false, can_nickname: false,
can_ping: false, can_ping: false,
@ -68,6 +69,7 @@ const defaultOptions: PluginOptions<UtilityPluginType> = {
can_invite: true, can_invite: true,
can_channel: true, can_channel: true,
can_message: true, can_message: true,
can_userinfo: true,
can_nickname: true, can_nickname: true,
can_vcmove: true, can_vcmove: true,
can_help: true, can_help: true,
@ -101,7 +103,7 @@ export const UtilityPlugin = zeppelinPlugin<UtilityPluginType>()("utility", {
commands: [ commands: [
SearchCmd, SearchCmd,
BanSearchCmd, BanSearchCmd,
InfoCmd, UserInfoCmd,
LevelCmd, LevelCmd,
RolesCmd, RolesCmd,
ServerCmd, ServerCmd,

View file

@ -3,11 +3,11 @@ import { commandTypeHelpers as ct } from "../../../commandTypes";
import { getUserInfoEmbed } from "../functions/getUserInfoEmbed"; import { getUserInfoEmbed } from "../functions/getUserInfoEmbed";
import { sendErrorMessage } from "../../../pluginUtils"; import { sendErrorMessage } from "../../../pluginUtils";
export const InfoCmd = utilityCmd({ export const UserInfoCmd = utilityCmd({
trigger: "info", trigger: ["user", "userinfo"],
description: "Show basic information about a user", description: "Show information about a user",
usage: "!info 106391128718245888", usage: "!user 106391128718245888",
permission: "can_info", permission: "can_userinfo",
signature: { signature: {
user: ct.resolvedUserLoose({ required: false }), user: ct.resolvedUserLoose({ required: false }),

View file

@ -16,6 +16,7 @@ export const ConfigSchema = t.type({
can_invite: t.boolean, can_invite: t.boolean,
can_channel: t.boolean, can_channel: t.boolean,
can_message: t.boolean, can_message: t.boolean,
can_userinfo: t.boolean,
can_reload_guild: t.boolean, can_reload_guild: t.boolean,
can_nickname: t.boolean, can_nickname: t.boolean,
can_ping: t.boolean, can_ping: t.boolean,