Skip to content

Commit

Permalink
Don't use strike comment for punishment
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianVennen committed Jun 3, 2024
1 parent 6684251 commit 4afc9af
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions src/discord/MemberWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,10 @@ export default class MemberWrapper {

/**
* strike this member
* @param {String} reason
* @param {String} comment
* @param {String} reason
* @param {?String} comment
* @param {User|import('discord.js').ClientUser} moderator
* @param {number} amount
* @param {number} amount
* @return {Promise<void>}
*/
async strike(reason, comment, moderator, amount = 1){
Expand All @@ -304,7 +304,7 @@ export default class MemberWrapper {
const total = await this.getStrikeSum();
await moderation.log(total);
const punishment = (await this.getGuildSettings()).findPunishment(total);
await this.executePunishment(punishment, `Reaching ${total} strikes`, comment, true);
await this.executePunishment(punishment, `Reaching ${total} strikes`, null, true);
}

/**
Expand All @@ -322,7 +322,7 @@ export default class MemberWrapper {
* execute this punishment
* @param {Punishment} punishment
* @param {String} reason
* @param {string} comment
* @param {?string} comment
* @param {boolean} [allowEmpty] return if there is no punishment instead of throwing an exception
* @return {Promise<void>}
*/
Expand Down Expand Up @@ -364,10 +364,10 @@ export default class MemberWrapper {

/**
* pardon strikes from this member
* @param {String} reason
* @param {String} comment
* @param {String} reason
* @param {?String} comment
* @param {User|import('discord.js').ClientUser} moderator
* @param {number} amount
* @param {number} amount
* @return {Promise<void>}
*/
async pardon(reason, comment, moderator, amount = 1){
Expand All @@ -378,8 +378,8 @@ export default class MemberWrapper {

/**
* ban this user from this guild
* @param {String} reason
* @param {String} comment
* @param {String} reason
* @param {?String} comment
* @param {User|import('discord.js').ClientUser} moderator
* @param {?number} [duration]
* @param {?number} [deleteMessageSeconds]
Expand All @@ -401,8 +401,8 @@ export default class MemberWrapper {

/**
* unban this member
* @param {String} reason
* @param {String} comment
* @param {String} reason
* @param {?String} comment
* @param {User|import('discord.js').ClientUser} moderator
* @return {Promise<void>}
*/
Expand All @@ -421,10 +421,10 @@ export default class MemberWrapper {

/**
* softban this user from this guild
* @param {String} reason
* @param {String} comment
* @param {String} reason
* @param {?String} comment
* @param {import('discord.js').User} moderator
* @param {?number} [deleteMessageSeconds]
* @param {?number} [deleteMessageSeconds]
* @return {Promise<void>}
*/
async softban(reason, comment, moderator, deleteMessageSeconds){
Expand All @@ -444,8 +444,8 @@ export default class MemberWrapper {

/**
* kick this user from this guild
* @param {String} reason
* @param {String} comment
* @param {String} reason
* @param {?String} comment
* @param {User|import('discord.js').ClientUser} moderator
* @return {Promise<void>}
*/
Expand All @@ -458,10 +458,10 @@ export default class MemberWrapper {

/**
* mute this user in this guild
* @param {String} reason
* @param {String} comment
* @param {String} reason
* @param {?String} comment
* @param {User|import('discord.js').ClientUser} moderator
* @param {Number} [duration]
* @param {Number} [duration]
* @return {Promise<void>}
*/
async mute(reason, comment, moderator, duration){
Expand Down Expand Up @@ -489,8 +489,8 @@ export default class MemberWrapper {

/**
* unmute this user in this guild
* @param {String} reason
* @param {String} comment
* @param {String} reason
* @param {?String} comment
* @param {User|import('discord.js').ClientUser} moderator
* @return {Promise<void>}
*/
Expand Down

0 comments on commit 4afc9af

Please sign in to comment.