mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-25 22:55:00 +05:00
fixeeees
This commit is contained in:
parent
c68af1914d
commit
62a33e4530
7 changed files with 8 additions and 4 deletions
|
@ -21,7 +21,7 @@ class Kick extends Command {
|
||||||
const member = await this.client.resolveMember(args[0], message.guild);
|
const member = await this.client.resolveMember(args[0], message.guild);
|
||||||
if (!member) return message.error("moderation/kick:MISSING_MEMBER");
|
if (!member) return message.error("moderation/kick:MISSING_MEMBER");
|
||||||
|
|
||||||
if (member.id === message.author.id) return message.error("moderation/ban:YOURSELF");
|
if (member.id === message.author.id) return message.error("moderation/kick:YOURSELF");
|
||||||
|
|
||||||
const memberData = await this.client.findOrCreateMember({ id: member.id, guildID: message.guild.id });
|
const memberData = await this.client.findOrCreateMember({ id: member.id, guildID: message.guild.id });
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ class Warn extends Command {
|
||||||
|
|
||||||
const memberData = await this.client.findOrCreateMember({ id: member.id, guildID: message.guild.id });
|
const memberData = await this.client.findOrCreateMember({ id: member.id, guildID: message.guild.id });
|
||||||
|
|
||||||
if (member.id === message.author.id) return message.error("moderation/ban:YOURSELF");
|
if (member.id === message.author.id) return message.error("moderation/warn:YOURSELF");
|
||||||
|
|
||||||
const memberPosition = member.roles.highest.position;
|
const memberPosition = member.roles.highest.position;
|
||||||
const moderationPosition = message.member.roles.highest.position;
|
const moderationPosition = message.member.roles.highest.position;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
"USAGE": "{{prefix}}ban [@user] (reason)",
|
"USAGE": "{{prefix}}ban [@user] (reason)",
|
||||||
"EXAMPLES": "{{prefix}}ban @Jonny_Bro#4226 Spam",
|
"EXAMPLES": "{{prefix}}ban @Jonny_Bro#4226 Spam",
|
||||||
"MISSING_MEMBER": "Please specify a valid member to ban!",
|
"MISSING_MEMBER": "Please specify a valid member to ban!",
|
||||||
"YOURSELF": "You can't sanction yourself!",
|
"YOURSELF": "You can't ban yourself!",
|
||||||
"SUPERIOR": "You can't sanction or update a sanction for a member who has an higher or equal role hierarchy to yours!",
|
"SUPERIOR": "You can't sanction or update a sanction for a member who has an higher or equal role hierarchy to yours!",
|
||||||
"ALREADY_BANNED": "**{{username}}** is already banned!",
|
"ALREADY_BANNED": "**{{username}}** is already banned!",
|
||||||
"MISSING_PERM": "An error has occurred... Please check that I have the permission to ban this specific member and try again!",
|
"MISSING_PERM": "An error has occurred... Please check that I have the permission to ban this specific member and try again!",
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
"USAGE": "{{prefix}}kick [@member] (reason)",
|
"USAGE": "{{prefix}}kick [@member] (reason)",
|
||||||
"EXAMPLES": "{{prefix}}kick @Jonny_Bro#4226 Spam",
|
"EXAMPLES": "{{prefix}}kick @Jonny_Bro#4226 Spam",
|
||||||
"MISSING_MEMBER": "Please specify a valid member to kick!",
|
"MISSING_MEMBER": "Please specify a valid member to kick!",
|
||||||
|
"YOURSELF": "You can't kick yourself!",
|
||||||
"MISSING_PERM": "An error has occurred... Please check that I have the permission to kick this specific member and try again!",
|
"MISSING_PERM": "An error has occurred... Please check that I have the permission to kick this specific member and try again!",
|
||||||
"KICKED_DM": "Hello {{username}},\nYou have just been kicked from **{{server}}** by **{{moderator}}** because of **{{reason}}**!",
|
"KICKED_DM": "Hello {{username}},\nYou have just been kicked from **{{server}}** by **{{moderator}}** because of **{{reason}}**!",
|
||||||
"KICKED": "**{{username}}** has just been kicked from **{{server}}** by **{{moderator}}** because of **{{reason}}**!",
|
"KICKED": "**{{username}}** has just been kicked from **{{server}}** by **{{moderator}}** because of **{{reason}}**!",
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
"USAGE": "{{prefix}}warn [@member] [reason]",
|
"USAGE": "{{prefix}}warn [@member] [reason]",
|
||||||
"EXAMPLES": "{{prefix}}warn @Jonny_Bro#4226 Dumb",
|
"EXAMPLES": "{{prefix}}warn @Jonny_Bro#4226 Dumb",
|
||||||
"MISSING_MEMBER": "Please specify the member you want to warn!",
|
"MISSING_MEMBER": "Please specify the member you want to warn!",
|
||||||
|
"YOURSELF": "You can't warn yourself!",
|
||||||
"MISSING_REASON": "Please enter a reason!",
|
"MISSING_REASON": "Please enter a reason!",
|
||||||
"WARNED_DM": "Hello {{username}},\nYou've just been warned on **{{server}}** by **{{moderator}}** for **{{reason}}**!",
|
"WARNED_DM": "Hello {{username}},\nYou've just been warned on **{{server}}** by **{{moderator}}** for **{{reason}}**!",
|
||||||
"WARNED": "**{{username}}** has been warned in private messages for **{{reason}}**!",
|
"WARNED": "**{{username}}** has been warned in private messages for **{{reason}}**!",
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
"USAGE": "{{prefix}}kick [@пользователь] (причина)",
|
"USAGE": "{{prefix}}kick [@пользователь] (причина)",
|
||||||
"EXAMPLES": "{{prefix}}kick @Jonny_Bro#4226 Спам",
|
"EXAMPLES": "{{prefix}}kick @Jonny_Bro#4226 Спам",
|
||||||
"MISSING_MEMBER": "Вы должны упомянуть пользователя!",
|
"MISSING_MEMBER": "Вы должны упомянуть пользователя!",
|
||||||
|
"YOURSELF": "Вы не можете кикнуть себя!",
|
||||||
"MISSING_PERM": "Произошла ошибка... Проверьте, есть ли у вас право кикать пользователей и попробуйте снова!",
|
"MISSING_PERM": "Произошла ошибка... Проверьте, есть ли у вас право кикать пользователей и попробуйте снова!",
|
||||||
"KICKED_DM": "Привет {{username}},\nвы были кикнуты с сервера **{{server}}** пользователем **{{moderator}}** по причине **{{reason}}**!",
|
"KICKED_DM": "Привет {{username}},\nвы были кикнуты с сервера **{{server}}** пользователем **{{moderator}}** по причине **{{reason}}**!",
|
||||||
"KICKED": "**{{username}}** был кикнут с сервера **{{server}}** пользователем **{{moderator}}** по причине **{{reason}}**!",
|
"KICKED": "**{{username}}** был кикнут с сервера **{{server}}** пользователем **{{moderator}}** по причине **{{reason}}**!",
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
{
|
{
|
||||||
"DESCRIPTION": "Выдать предупреждение пользователю в ЛС",
|
"DESCRIPTION": "Выдать предупреждение пользователю в ЛС",
|
||||||
"USAGE": "{{prefix}}warn [@пользователь] [причина]",
|
"USAGE": "{{prefix}}warn [@пользователь] [причина]",
|
||||||
"EXAMPLES": "{{prefix}}warn @Jonny_Bro#4226 whats 9 + 10",
|
"EXAMPLES": "{{prefix}}warn @Jonny_Bro#4226 stupid",
|
||||||
"MISSING_MEMBER": "Вы должны упомянуть пользователя!",
|
"MISSING_MEMBER": "Вы должны упомянуть пользователя!",
|
||||||
|
"YOURSELF": "Вы не можете подать жалобу на себя!",
|
||||||
"MISSING_REASON": "Укажите причину!",
|
"MISSING_REASON": "Укажите причину!",
|
||||||
"WARNED_DM": "Привет {{username}},\nвы получили предупреждение на сервере **{{server}}** от пользователя **{{moderator}}** по причине **{{reason}}**!",
|
"WARNED_DM": "Привет {{username}},\nвы получили предупреждение на сервере **{{server}}** от пользователя **{{moderator}}** по причине **{{reason}}**!",
|
||||||
"WARNED": "**{{username}}** получил предупреждение в ЛС по причине **{{reason}}**!",
|
"WARNED": "**{{username}}** получил предупреждение в ЛС по причине **{{reason}}**!",
|
||||||
|
|
Loading…
Reference in a new issue