An nextcord extension that helps you to launch activities on Discord.
Project description
nextcord-ext-activities
nextcord.ext.activities is an extension that helps you to launch activities on Discord.
Quick example
import nextcord
from nextcord.ext import commands, activities
intents = nextcord.Intents.default()
bot = commands.Bot(command_prefix = "$")
@bot.event
async def on_ready():
print(f"Logged in as {str(bot.user)} (ID {bot.user.id})")
@bot.command()
async def poker(ctx, channel: nextcord.VoiceChannel):
invite_link = await channel.create_activity_invite(activities.Activity.poker)
await ctx.send(invite_link)
@bot.command()
async def betrayal(ctx, channel: nextcord.VoiceChannel):
invite_link = await channel.create_activity_invite(activities.Activity.betrayal)
await ctx.send(invite_link)
bot.run('token here')
You can find more example in the example directory
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for nextcord-ext-activities-2022.2.26.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3c18108c49a598ea4b5eab4b4a252692533cd8eadb2a63d68c13851b29863e5 |
|
MD5 | ed294f070ae3a4e41d90aa66ec6f915a |
|
BLAKE2b-256 | 46cf5145699319916b948b169564c9e24fb64a7ebba960c09b85067d3e0ad56e |