Ещё фиксики

This commit is contained in:
JonnyBro 2022-02-15 01:52:36 +05:00
parent 7f56231876
commit a3f78a9917
7 changed files with 9 additions and 7 deletions

View file

@ -21,7 +21,7 @@ class Mute extends Command {
async run(message, args, data) {
const member = await this.client.resolveMember(args[0], message.guild);
if (!member) return message.error("moderation/mute:MISSING_MEMBER");
if (member.id === message.author.id) return message.error("moderation/ban:YOURSELF");
if (member.id === message.author.id) return message.error("moderation/mute:YOURSELF");
const memberPosition = member.roles.highest.position;
const moderationPosition = message.member.roles.highest.position;

View file

@ -1,14 +1,14 @@
const Command = require("../../base/Command"),
Discord = require("discord.js");
class Sanctions extends Command {
class Warns extends Command {
constructor(client) {
super(client, {
name: "sanctions",
name: "warns",
dirname: __dirname,
enabled: true,
guildOnly: true,
aliases: ["warns"],
aliases: ["ws"],
memberPermissions: ["MANAGE_MESSAGES"],
botPermissions: ["SEND_MESSAGES", "EMBED_LINKS"],
nsfw: false,
@ -19,7 +19,7 @@ class Sanctions extends Command {
async run(message, args, data) {
const user = await this.client.resolveUser(args[0]);
if (!user) return message.error("moderation/sanctions:MISSING_MEMBER");
if (!user) return message.error("moderation/warns:MISSING_MEMBER");
const memberData = await this.client.findOrCreateMember({
id: user.id,
@ -41,7 +41,7 @@ class Sanctions extends Command {
});
if (memberData.sanctions.length < 1) {
embed.setDescription(message.translate("moderation/sanctions:NO_SANCTION", {
embed.setDescription(message.translate("moderation/warns:NO_SANCTION", {
username: user.tag
}));
return message.reply({
@ -58,4 +58,4 @@ class Sanctions extends Command {
}
}
module.exports = Sanctions;
module.exports = Warns;

View file

@ -3,6 +3,7 @@
"USAGE": "{{prefix}}mute [@пользователь] [время] (причина)",
"EXAMPLES": "{{prefix}}mute @Jonny_Bro#4226 24h Спам",
"MISSING_MEMBER": "Вы должны упомянуть пользователя!",
"YOURSELF": "Вы не можете замутить себя!",
"MUTED_DM": "Привет {{username}},\nвы были замучены на сервере **{{server}}** пользователем **{{moderator}}** на **{{time}}** по причине **{{reason}}**!",
"MUTED": "**{{username}}** замучен на **{{time}}** по причине **{{reason}}**!",
"CASE": "Мут | Номер #{{count}}"

View file

@ -3,6 +3,7 @@
"USAGE": "{{prefix}}mute [@пользователь] [время] (причина)",
"EXAMPLES": "{{prefix}}mute @Jonny_Bro#4226 24h Спам",
"MISSING_MEMBER": "Вы должны упомянуть пользователя!",
"YOURSELF": "Вы не можете замутить себя!",
"MUTED_DM": "Привет {{username}},\nвы были замучены на сервере **{{server}}** пользователем **{{moderator}}** на **{{time}}** по причине **{{reason}}**!",
"MUTED": "**{{username}}** замучен на **{{time}}** по причине **{{reason}}**!",
"CASE": "Мут | Номер #{{count}}"