Removed useless client const

This commit is contained in:
Supositware 2022-08-15 15:14:03 +02:00
parent d8c5ffa1d9
commit 75eaa21e93

View file

@ -6,7 +6,7 @@ import os from 'node:os';
import fs from 'node:fs'; import fs from 'node:fs';
import db from '../../models/index.js'; import db from '../../models/index.js';
import wordToCensor from '../../json/censor.json' assert {type: 'json'};; import wordToCensor from '../../json/censor.json' assert {type: 'json'};
import dotenv from 'dotenv'; import dotenv from 'dotenv';
dotenv.config(); dotenv.config();
const { twiConsumer, twiConsumerSecret, twiToken, twiTokenSecret, twiChannel, twiLogChannel } = process.env; const { twiConsumer, twiConsumerSecret, twiToken, twiTokenSecret, twiChannel, twiLogChannel } = process.env;
@ -29,7 +29,6 @@ export default {
cooldown: 3600, cooldown: 3600,
async execute(interaction) { async execute(interaction) {
await interaction.deferReply({ ephemeral: false }); await interaction.deferReply({ ephemeral: false });
const client = interaction.client;
let tweet = interaction.options.getString('content'); let tweet = interaction.options.getString('content');
const attachment = interaction.options.getAttachment('image'); const attachment = interaction.options.getAttachment('image');
const date = new Date(); const date = new Date();