Skip to main content

discord.js

This module lets you use discord.js in python by offering a similar syntax to the actual discord.js.

Installation

Stable version:

pip install discord.js

Working version:

pip install git+https://github.com/CodeWithSwastik/discord-js

Simple bot

from discordjs import Client
from javascript import console

client = Client()

client.on("ready", lambda:
    console.log("Bot is ready")
)

async def msg(message):
    if message.content.startswith("!ping"):
        await message.channel.send("pong")

client.on("message", msg)

client.login('Token')

Metadata

Release files for discord.js 1.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for discord.js 1.0.7
File Size Uploaded Provenance Actions
discord.js-1.0.7.tar.gz 1.9 kB Without provenance Details for discord.js-1.0.7.tar.gz

Release files / discord.js-1.0.7.tar.gz

Download URL discord.js-1.0.7.tar.gz
Size 1.9 kB
Tags Source
SHA-256 checksum
How to use checksums
9fcc787eeaadea70758097cd8ecb60d47e503779a0f2e7bc8974fcab100d7f4b
BLAKE2b-256 checksum
How to use checksums
9bb022fbf7efa7a44797d7407eec1adbaa161bea8cf340c95072265346142301
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.10.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.8.5

Security for discord.js 1.0.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page