From a641c5031b02ac923c05564f137fd51e31dfd574 Mon Sep 17 00:00:00 2001 From: Shay Date: Wed, 6 Apr 2022 16:46:21 -0700 Subject: [PATCH] update imports --- app.js | 4 ++-- commands.js | 2 +- examples/button.js | 4 ++-- examples/command.js | 4 ++-- examples/modal.js | 5 ++--- examples/selectMenu.js | 4 ++-- 6 files changed, 11 insertions(+), 12 deletions(-) diff --git a/app.js b/app.js index fcd0a3b..17f5b20 100644 --- a/app.js +++ b/app.js @@ -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]); -}); \ No newline at end of file +}); diff --git a/commands.js b/commands.js index 9e8a165..e9c9ce9 100644 --- a/commands.js +++ b/commands.js @@ -72,4 +72,4 @@ export const CHALLENGE_COMMAND = { } ], "type": 1 -}; \ No newline at end of file +}; diff --git a/examples/button.js b/examples/button.js index aebc198..0fd7099 100644 --- a/examples/button.js +++ b/examples/button.js @@ -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'); -}); \ No newline at end of file +}); diff --git a/examples/command.js b/examples/command.js index cff0e07..7e5b4c0 100644 --- a/examples/command.js +++ b/examples/command.js @@ -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(); -}); \ No newline at end of file +}); diff --git a/examples/modal.js b/examples/modal.js index e4d9dc0..512abbb 100644 --- a/examples/modal.js +++ b/examples/modal.js @@ -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'); -}); \ No newline at end of file +}); diff --git a/examples/selectMenu.js b/examples/selectMenu.js index c4e3fb1..8341a26 100644 --- a/examples/selectMenu.js +++ b/examples/selectMenu.js @@ -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'); -}); \ No newline at end of file +});