-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removed unused vars #1
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import globals from "globals"; | ||
import pluginJs from "@eslint/js"; | ||
import tseslint from "typescript-eslint"; | ||
|
||
|
||
export default [ | ||
{files: ["**/*.{js,mjs,cjs,ts}"]}, | ||
{languageOptions: { globals: globals.browser }}, | ||
pluginJs.configs.recommended, | ||
...tseslint.configs.recommended, | ||
]; |
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
import { ActionRowBuilder, ButtonBuilder, ButtonStyle } from "discord.js"; | ||
import { Command } from "../../types/discord"; | ||
import { getUser } from "../../db"; | ||
|
||
export default { | ||
name: "discord", | ||
role: "CHAT_INPUT", | ||
description: "Get the Discord server invite link", | ||
run: async (interaction, serverLocale, userLocale) => { | ||
run: async (interaction,) => { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This also |
||
await interaction.reply({ | ||
content: "https://discord.gg/uZaTYww7hN", | ||
ephemeral: true, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,10 @@ | ||
import { | ||
ActionRowBuilder, | ||
ButtonBuilder, | ||
ButtonStyle, | ||
PermissionsBitField, | ||
PermissionFlagsBits, | ||
} from "discord.js"; | ||
import { Command } from "../../../types/discord"; | ||
import { embed } from "../../../utils/discord"; | ||
import { Locales } from "../../../locales"; | ||
|
||
export default { | ||
name: "settings-autocomplete", | ||
role: "AUTOCOMPLETE", | ||
run: async (interaction, serverLocale, userLocale) => { | ||
run: async (interaction) => { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is what it should look like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But also not at the same time, serverLocale and userLocale need to exist otherwise when the function is called it will throw errors |
||
const option = interaction.options.getFocused(true); | ||
switch (option.name) { | ||
case "option": { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
import { Client } from "discord.js"; | ||
import { Express } from "express"; | ||
import { initialiseSteam } from "../utils/steam"; | ||
|
||
export default function (app: Express, client: Client) { | ||
export default function (app: Express) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. client needs to be here otherwise the function will break |
||
app.get("/auth", async (req, res) => { | ||
const clientid = req.query.clientid; | ||
if (!clientid) return res.status(400).send("No clientid provided"); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
import type { | ||
AnySelectMenuInteraction, | ||
ApplicationCommandOption, | ||
AutocompleteInteraction, | ||
ButtonInteraction, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should cause an error, can't test rn tho