Skip to content
This repository was archived by the owner on Dec 21, 2018. It is now read-only.

Commit 832288b

Browse files
author
Matthew Ray
committed
Update main.js
1 parent 244a4de commit 832288b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class server {
158158
if (req.headers.authorization !== client.config.adminAuth) return res.sendStatus(401);
159159
if (client.bans.get(req.params.ip) === false) return res.status(409).send('This IP was never banned.');
160160
try {
161-
client.bans.remove(req.params.ip);
161+
client.bans.delete(req.params.ip);
162162
const Discord = require('discord.js');
163163
const embed = new Discord.RichEmbed();
164164
const hook = new Discord.WebhookClient(client.config.APILogsID, client.config.APILogsToken);

0 commit comments

Comments
 (0)