-
-
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?
Conversation
import { Locales } from "../../../locales"; | ||
|
||
export default { | ||
name: "config-autocomplete", | ||
role: "AUTOCOMPLETE", | ||
run: async (interaction, serverLocale, userLocale) => { | ||
run: async (interaction, ) => { |
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
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 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) => { |
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 is what it should look like
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.
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) { |
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.
client needs to be here otherwise the function will break
No description provided.