Skip to content

Commit

Permalink
ban update (added force opt in api)
Browse files Browse the repository at this point in the history
  • Loading branch information
mirdukkkkk committed Feb 20, 2024
1 parent 6777c57 commit b122feb
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/commands/TokenCommand.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,20 +61,6 @@ class TokenCommand extends PixelCommand {

if(request?.error ?? !request) return msg.reply({ content: request ? `Произошла ошибка при бане игрока\n${codeBlock('json', JSON.stringify(request))}` : 'От API поступил пустой ответ, возможно, стоит проверить его состояние' });

message.client.database.collection('users').updateOne(
{ userID: user.id },
{
$set: {
banned: action ? {
moderatorID: message.author.id,
timeout,
reason
} : null
}
},
{ hint: { userID: 1 } }
)

msg.edit({
content: null,
embeds: [
Expand Down

0 comments on commit b122feb

Please sign in to comment.