Skip to content
This repository has been archived by the owner on Jul 30, 2020. It is now read-only.

Commit

Permalink
v1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
iwa authored Jun 11, 2020
2 parents bbc3e89 + 5933a39 commit 0364658
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "q-bot",
"version": "1.6.0",
"version": "1.6.1",
"description": "Discord Bot for Qumu's Discord Server",
"main": "build/index.js",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion src/events/logs/messageDelete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
import { Message, User, PartialMessage, Client, TextChannel, MessageEmbed } from 'discord.js';

export default async function messageDelete(msg: Message | PartialMessage, bot: Client) {
if (!msg.guild) return;
if (!msg.guild) return;
if (msg.content.startsWith('?')) return;
const fetchedLogs = await msg.guild.fetchAuditLogs({
limit: 1,
type: 'MESSAGE_DELETE',
Expand Down

0 comments on commit 0364658

Please sign in to comment.