1.0.14 • Published 1 year ago

dinteractions.js v1.0.14

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

dinteractions.js

A discord interactions library.

import { Client } from 'dinteractions.js'

const client = new Client({
    applicationId: 'DISCORD_APPLICATION_ID',
    publicKey: 'DISCORD_PUBLIC_KEY',
    token: 'DISCORD_BOT_TOKEN'
})

client.addCommand({
    data: {
        name: 'hello',
        description: 'Replies with hello message.'
    },
    handle: async (client, interaction) => {
        await client.sendReply(interaction, {
            content: 'hello'
        })
    }
})

client.syncCommands()

client.serve('/interactions', 8000)
1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago