mirror of
https://github.com/arthur-pbty/gestion.git
synced 2026-06-03 23:36:35 +02:00
grand commit que tutur attend ( marche pas le raidmode en dev)
sinon il y a pleins de truc comme les anti raid , des coorectif ect
This commit is contained in:
@@ -5,7 +5,7 @@ module.exports = {
|
||||
name: 'unwarn',
|
||||
description: 'Supprimer un avertissement d\'un utilisateur',
|
||||
category: 'moderation',
|
||||
utilisation: '+unwarn @user <warnid>',
|
||||
utilisation: 'unwarn @user <warnid>',
|
||||
|
||||
async execute(message, args, client) {
|
||||
const user = message.mentions.users.first() || client.users.cache.get(args[0]);
|
||||
@@ -23,7 +23,6 @@ module.exports = {
|
||||
const warningId = parseInt(args[1]);
|
||||
if (!warningId) return message.reply("Veuillez mettre l'id du warn.");
|
||||
|
||||
// Supprimer l'avertissement de la base de données
|
||||
db.run('DELETE FROM warnings WHERE guildId = ? AND userId = ? AND warningId = ?', [message.guild.id, user.id, warningId], (err) => {
|
||||
if (err) {
|
||||
console.error(err.message);
|
||||
|
||||
Reference in New Issue
Block a user