update imports

This commit is contained in:
Shay
2022-04-06 16:46:21 -07:00
parent c35e3fb910
commit a641c5031b
6 changed files with 11 additions and 12 deletions

4
app.js
View File

@@ -1,5 +1,5 @@
import 'dotenv/config'
import express, { json } from 'express'
import express from 'express'
import axios from 'axios';
import { InteractionType, InteractionResponseType } from 'discord-interactions';
import { VerifyDiscordRequest, getRandomEmoji, ComponentType, ButtonStyle, DiscordAPI } from './utils.js';
@@ -151,4 +151,4 @@ app.listen(3000, () => {
// Check if guild commands from commands.json are installed (if not, install them)
HasGuildCommands(client, process.env.APP_ID, process.env.GUILD_ID, [TEST_COMMAND, CHALLENGE_COMMAND]);
});
});

View File

@@ -72,4 +72,4 @@ export const CHALLENGE_COMMAND = {
}
],
"type": 1
};
};

View File

@@ -1,7 +1,7 @@
import 'dotenv/config'
import express from 'express'
import { InteractionType, InteractionResponseType } from 'discord-interactions';
import { VerifyDiscordRequest, ComponentType, ButtonStyle } from './utils.js';
import { VerifyDiscordRequest, ComponentType, ButtonStyle } from '../utils.js';
// Create and configure express app
const app = express();
@@ -58,4 +58,4 @@ app.post('/interactions', function (req, res) {
app.listen(3000, () => {
console.log('Listening on port 3000');
});
});

View File

@@ -1,7 +1,7 @@
import 'dotenv/config'
import express from 'express'
import { InteractionType, InteractionResponseType } from 'discord-interactions';
import { VerifyDiscordRequest } from './utils.js';
import { VerifyDiscordRequest, DiscordAPI } from '../utils.js';
import axios from 'axios';
// Create and configure express app
@@ -67,4 +67,4 @@ app.listen(3000, () => {
console.log('Listening on port 3000');
createCommand();
});
});

View File

@@ -1,8 +1,7 @@
import 'dotenv/config'
import express from 'express'
import { InteractionType, InteractionResponseType } from 'discord-interactions';
import { VerifyDiscordRequest } from './utils.js';
import { ComponentType } from '../utils.js';
import { VerifyDiscordRequest, ComponentType } from '../utils.js';
// Create and configure express app
const app = express();
@@ -82,4 +81,4 @@ app.post('/interactions', function (req, res) {
app.listen(3000, () => {
console.log('Listening on port 3000');
});
});

View File

@@ -1,7 +1,7 @@
import 'dotenv/config'
import express from 'express'
import { InteractionType, InteractionResponseType } from 'discord-interactions';
import { VerifyDiscordRequest, ComponentType } from './utils.js';
import { VerifyDiscordRequest, ComponentType } from '../utils.js';
// Create and configure express app
const app = express();
@@ -73,4 +73,4 @@ app.post('/interactions', function (req, res) {
app.listen(3000, () => {
console.log('Listening on port 3000');
});
});