mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 06:42:51 +02:00
Invite Guard, Topic Parsing Changes
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
const Command = require('../../structures/Command');
|
||||
const { MessageEmbed } = require('discord.js');
|
||||
const { stripIndents } = require('common-tags');
|
||||
const { parseTopic } = require('../../structures/Util');
|
||||
const { filterTopics } = require('../../structures/Util');
|
||||
|
||||
module.exports = class UnbanCommand extends Command {
|
||||
constructor(client) {
|
||||
@@ -34,7 +34,7 @@ module.exports = class UnbanCommand extends Command {
|
||||
}
|
||||
|
||||
async run(msg, args) {
|
||||
const modlogs = parseTopic(msg.guild.channels, 'modlog', this.client.user).first();
|
||||
const modlogs = filterTopics(msg.guild.channels, 'modlog').first();
|
||||
const { id, reason } = args;
|
||||
const bans = await msg.guild.fetchBans();
|
||||
if (!bans.has(id)) return msg.say('This ID is not in the Guild Banlist.');
|
||||
|
||||
Reference in New Issue
Block a user