Ignore messages from Deleted User
This commit is contained in:
parent
0e56255f82
commit
9e5a3f5f32
1 changed files with 1 additions and 0 deletions
|
@ -161,6 +161,7 @@ module.exports = {
|
||||||
* @param {import("discord-api-types/v10").GatewayMessageCreateDispatchData} message
|
* @param {import("discord-api-types/v10").GatewayMessageCreateDispatchData} message
|
||||||
*/
|
*/
|
||||||
async onMessageCreate(client, message) {
|
async onMessageCreate(client, message) {
|
||||||
|
if (message.author.username === "Deleted User") return // Nothing we can do for deleted users.
|
||||||
if (message.webhook_id) {
|
if (message.webhook_id) {
|
||||||
const row = select("webhook", "webhook_id", {webhook_id: message.webhook_id}).pluck().get()
|
const row = select("webhook", "webhook_id", {webhook_id: message.webhook_id}).pluck().get()
|
||||||
if (row) {
|
if (row) {
|
||||||
|
|
Loading…
Reference in a new issue