mirror of
https://github.com/Paillat-dev/pycord-rest.git
synced 2026-01-02 00:56:19 +00:00
♻️ Simplify App initialization by removing default intents in README
This commit is contained in:
@@ -25,7 +25,7 @@ Currently, the package is in pre-release, so you need to use the `--prerelease=a
|
|||||||
from pycord_rest import App
|
from pycord_rest import App
|
||||||
import discord
|
import discord
|
||||||
|
|
||||||
app = App(intents=discord.Intents.default())
|
app = App()
|
||||||
|
|
||||||
@app.slash_command(name="ping", description="Responds with pong!")
|
@app.slash_command(name="ping", description="Responds with pong!")
|
||||||
async def ping(ctx):
|
async def ping(ctx):
|
||||||
|
|||||||
Reference in New Issue
Block a user