Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

Josephfallen
Copy link

No description provided.

import { Locales } from "../../../locales";

export default {
name: "config-autocomplete",
role: "AUTOCOMPLETE",
run: async (interaction, serverLocale, userLocale) => {
run: async (interaction, ) => {
Copy link
Owner

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

export default {
name: "discord",
role: "CHAT_INPUT",
description: "Get the Discord server invite link",
run: async (interaction, serverLocale, userLocale) => {
run: async (interaction,) => {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also

import { Locales } from "../../../locales";

export default {
name: "settings-autocomplete",
role: "AUTOCOMPLETE",
run: async (interaction, serverLocale, userLocale) => {
run: async (interaction) => {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is what it should look like

Copy link
Owner

Choose a reason for hiding this comment

The 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

import { Express } from "express";
import { initialiseSteam } from "../utils/steam";

export default function (app: Express, client: Client) {
export default function (app: Express) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

client needs to be here otherwise the function will break

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants