Replace "assert" with "with"
This commit is contained in:
parent
4a236497bd
commit
3f28a897b4
4 changed files with 6 additions and 6 deletions
|
@ -4,7 +4,7 @@ import TurndownService from 'turndown';
|
||||||
const turndown = new TurndownService();
|
const turndown = new TurndownService();
|
||||||
import fetch from 'node-fetch';
|
import fetch from 'node-fetch';
|
||||||
|
|
||||||
import fourChan from '../../json/4chan.json' assert {type: 'json'};
|
import fourChan from '../../json/4chan.json' with {type: 'json'};
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data: new SlashCommandBuilder()
|
data: new SlashCommandBuilder()
|
||||||
|
|
|
@ -8,7 +8,7 @@ import util from 'node:util';
|
||||||
import stream from 'node:stream';
|
import stream from 'node:stream';
|
||||||
|
|
||||||
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' with {type: 'json'};
|
||||||
const { twiConsumer, twiConsumerSecret, twiToken, twiTokenSecret, twiChannel, twiLogChannel } = process.env;
|
const { twiConsumer, twiConsumerSecret, twiToken, twiTokenSecret, twiChannel, twiLogChannel } = process.env;
|
||||||
|
|
||||||
const Blacklists = db.Blacklists;
|
const Blacklists = db.Blacklists;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { SlashCommandBuilder } from 'discord.js';
|
import { SlashCommandBuilder } from 'discord.js';
|
||||||
import { EmbedBuilder } from 'discord.js';
|
import { EmbedBuilder } from 'discord.js';
|
||||||
import donations from '../../json/donations.json' assert {type: 'json'};
|
import donations from '../../json/donations.json' with {type: 'json'};
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data: new SlashCommandBuilder()
|
data: new SlashCommandBuilder()
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import { ActivityType } from 'discord.js';
|
import { ActivityType } from 'discord.js';
|
||||||
import game from '../../json/playing.json' assert {type: 'json'};
|
import game from '../../json/playing.json' with {type: 'json'};
|
||||||
import music from '../../json/listening.json' assert {type: 'json'};
|
import music from '../../json/listening.json' with {type: 'json'};
|
||||||
import watch from '../../json/watching.json' assert {type: 'json'};
|
import watch from '../../json/watching.json' with {type: 'json'};
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'ready',
|
name: 'ready',
|
||||||
|
|
Loading…
Reference in a new issue