Skip to content

Commit

Permalink
chore(invite): remove obsolete invite command
Browse files Browse the repository at this point in the history
* now obsolete because of widely available in-app auth
  • Loading branch information
almostSouji committed May 5, 2024
1 parent 4fa5406 commit d52de7e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 22 deletions.
2 changes: 0 additions & 2 deletions src/deployFunctions/deployGlobal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { DiscordDocsCommand } from '../interactions/discorddocs.js';
import { DTypesCommand } from '../interactions/discordtypes.js';
import { DocsCommand } from '../interactions/docs.js';
import { GuideCommand } from '../interactions/guide.js';
import { InviteCommand } from '../interactions/invite.js';
import { MdnCommand } from '../interactions/mdn.js';
import { NodeCommand } from '../interactions/node.js';
import { TagCommand } from '../interactions/tag.js';
Expand All @@ -14,7 +13,6 @@ void deploy([
DiscordDocsCommand,
DocsCommand,
GuideCommand,
InviteCommand,
MdnCommand,
NodeCommand,
TagCommand,
Expand Down
16 changes: 0 additions & 16 deletions src/handling/handleApplicationCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ type CommandName =
| 'docs'
| 'dtypes'
| 'guide'
| 'invite'
| 'mdn'
| 'node'
| 'reloadversions'
Expand Down Expand Up @@ -114,21 +113,6 @@ export async function handleApplicationCommand(
break;
}

case 'invite': {
prepareResponse(
res,
`${hyperlink(
'(click here)',
hideLinkEmbed(
`https://discord.com/api/oauth2/authorize?client_id=${process.env
.DISCORD_CLIENT_ID!}&scope=applications.commands`,
),
)}`,
true,
);
break;
}

case 'mdn': {
const castArgs = args as ArgumentsOf<typeof MdnCommand>;
await mdnSearch(res, castArgs.query, castArgs.target, castArgs.hide);
Expand Down
4 changes: 0 additions & 4 deletions src/interactions/invite.ts

This file was deleted.

0 comments on commit d52de7e

Please sign in to comment.