update interfaces
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
This commit is contained in:
parent
4dad1b9ad8
commit
10bc4ae5df
|
@ -1,8 +1,9 @@
|
||||||
import { Command } from '../structures/command'
|
import { Command } from '../structures/command'
|
||||||
export default new Command({
|
export default new Command({
|
||||||
name: 'ping',
|
name: 'ping',
|
||||||
description: 'Does a pong',
|
description: 'Does a pong, duh',
|
||||||
run: async ({ interaction }) => {
|
run: async ({ interaction }) => {
|
||||||
interaction.reply('pong')
|
console.log(`Ping interaction received.`)
|
||||||
|
interaction.followUp('pong')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
export const name = 'ready'
|
export const name = 'ready'
|
||||||
export function execute(client: any) {
|
export function execute(client: any) {
|
||||||
console.log(`${JSON.stringify(client)} has been created.`)
|
console.log(`Processing ready: ${JSON.stringify(client)} has been created.`)
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,6 @@ export interface Player {
|
||||||
export type supported_languages = "german" | "english"
|
export type supported_languages = "german" | "english"
|
||||||
export interface localized_string {
|
export interface localized_string {
|
||||||
[k: string]: {
|
[k: string]: {
|
||||||
german: string,
|
[k in supported_languages]: string
|
||||||
english: string
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,7 +51,7 @@ export class ExtendedClient extends Client {
|
||||||
}
|
}
|
||||||
this.on("ready", (client: Client) => {
|
this.on("ready", (client: Client) => {
|
||||||
console.log(`Ready processing ${client}`)
|
console.log(`Ready processing ${client}`)
|
||||||
console.log(`${JSON.stringify(slashCommands)}`)
|
console.log(`SlashCommands: ${JSON.stringify(slashCommands)}`)
|
||||||
const guilds = client.guilds.cache
|
const guilds = client.guilds.cache
|
||||||
this.registerCommands(slashCommands, guilds)
|
this.registerCommands(slashCommands, guilds)
|
||||||
})
|
})
|
||||||
|
|
|
@ -5,7 +5,7 @@ export interface ExtendedInteraction extends CommandInteraction {
|
||||||
member: GuildMember
|
member: GuildMember
|
||||||
}
|
}
|
||||||
interface RunOptions {
|
interface RunOptions {
|
||||||
clients: ExtendedClient
|
client: ExtendedClient
|
||||||
interaction: ExtendedInteraction
|
interaction: ExtendedInteraction
|
||||||
args: CommandInteractionOptionResolver
|
args: CommandInteractionOptionResolver
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue