Skip to content

Commit

Permalink
chore(config): add API list to project configuration
Browse files Browse the repository at this point in the history
Define all APIs used in the project in the configuration file to avoid repetitions
  • Loading branch information
dankerow committed Aug 22, 2024
1 parent 2e81217 commit eb44b3e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,19 @@ import type {
Snowflake
} from 'discord.js'

interface APIItem {
baseUrl: string
}

type APIList = Record<string, APIItem>

export interface Config {
dirs?: {
commands?: string
events?: string
}
maintainers?: Snowflake[]
apis?: APIList
}

export interface CommandOptions {
Expand Down

0 comments on commit eb44b3e

Please sign in to comment.