-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace
app.ts
contents with app schema (#9)
* replace app.ts * move app schema to `app.ts` * upgrade to `deno.land/x/[email protected]`
- Loading branch information
1 parent
dbaac9a
commit 443e55f
Showing
7 changed files
with
334 additions
and
386 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { discord } from "shorter/deps.ts"; | ||
import type { AppSchema } from "shorter/deps.ts"; | ||
|
||
export const appSchema = { | ||
chatInput: { | ||
name: "shorter", | ||
description: "Shorten a URL", | ||
options: { | ||
alias: { | ||
type: discord.ApplicationCommandOptionType.String, | ||
description: "The alias of the shortlink", | ||
required: true, | ||
}, | ||
destination: { | ||
type: discord.ApplicationCommandOptionType.String, | ||
description: "The destination of the shortlink", | ||
required: true, | ||
}, | ||
force: { | ||
type: discord.ApplicationCommandOptionType.Boolean, | ||
description: "Whether to overwrite an existing shortlink", | ||
}, | ||
ttl: { | ||
type: discord.ApplicationCommandOptionType.String, | ||
description: "The time-to-live of the shortlink", | ||
}, | ||
}, | ||
}, | ||
} as const satisfies AppSchema; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
export * as dotenv from "https://deno.land/std@0.203.0/dotenv/mod.ts"; | ||
export * as discord from "https://deno.land/x/[email protected].60/v10.ts"; | ||
export * as dotenv from "https://deno.land/std@0.208.0/dotenv/mod.ts"; | ||
export * as discord from "https://deno.land/x/[email protected].65/v10.ts"; | ||
export * from "https://deno.land/x/[email protected]/github/mod.ts"; | ||
export type { GitHubAPIClientOptions } from "https://deno.land/x/[email protected]/github/api/mod.ts"; | ||
export { Duration } from "https://deno.land/x/[email protected]/mod.ts"; | ||
export { | ||
type AppSchema, | ||
createApp, | ||
} from "https://deno.land/x/[email protected]/mod.ts"; | ||
export { default as nacl } from "https://esm.sh/[email protected]"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
export * from "./discord_api_client_interface.ts"; | ||
export * from "./discord_api_client.ts"; | ||
export * from "./verify.ts"; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.