rigormorrtiss ddf5d9f490 add(helpers): connectToVoiceChannel() (#1048)
* feat(helpers): add joinVoiceChannel() helper

* Remove if-statement validating if channelId is present or not

* refactor(helpers): use snakelize()

* Rename to connectToVoiceChannel()

Co-authored-by: ITOH <to@itoh.at>

* Require VIEW_CHANNEL permission including CONNECT

Co-authored-by: ITOH <to@itoh.at>

* Change default value of third argument to {}

* Remove usage of Partial and mark options as optional

* Default selfDeaf to true by default

* .

* Add connectToVoiceChannel() to helpers module

* docs(helpers): add jsdoc block to connectToVoiceChannel()

* Use AtLeastOne type for options

* Default value for selfMute option

* Update src/helpers/voice/connect_to_voice_channel.ts

Co-authored-by: ITOH <to@itoh.at>

Co-authored-by: ITOH <to@itoh.at>
2021-06-16 21:02:21 +02:00
2021-05-29 21:26:53 +02:00
2021-06-06 16:28:42 +02:00
2021-05-21 17:54:52 +02:00
2021-05-08 19:20:59 +01:00
2021-05-21 22:59:08 +02:00

Discordeno

Discord API library for Deno

Discordeno follows Semantic Versioning

Discord Lint Test

Features

  • Secure & stable: Discordeno is actively maintained to ensure great performance and convenience. Moreover, it internally checks all missing permissions before forwarding a request to the Discord API so that the client does not get globally-banned by Discord.
  • Simple, Efficient, & Lightweight: Discordeno is simplistic, easy-to-use, versatile while being efficient and lightweight. Follows Convention Over Configuration design paradigm ― prefers defaults options or values that are recommended by Discord or the best configuration for the majority of the users.
  • Functional API: Functional API ensures an overall concise yet performant code while removing the difficulties of extending built-in classes and inheritance.

Getting Started

Minimal Example

Here is a minimal example to get started with:

import { startBot } from "https://deno.land/x/discordeno/mod.ts";

startBot({
  token: "BOT_TOKEN",
  intents: ["Guilds", "GuildMessages"],
  eventHandlers: {
    ready() {
      console.log("Successfully connected to gateway");
    },
    messageCreate(message) {
      // Process the message with your command handler here
    },
  },
});

Templates

Note to developers: don't worry a lot of developers start out programming a Discord bot as their first project (I did 😉) and it is not so easy to do so. Discordeno is designed and built considering all the issues that I and a lot of developers had when I first started out coding Discord bots with existing libraries. If you are a beginner, you can check out these awesome official and unofficial templates:

Contributing

We appreciate your help! Before contributing, please read the Contributing Guide.

Languages
TypeScript 98%
MDX 0.7%
CSS 0.6%
JavaScript 0.6%
Dockerfile 0.1%