♻️ Simplify App initialization by removing default intents in README

This commit is contained in:
2025-03-09 09:56:36 +01:00
parent 67bfd94e56
commit ef61e5c3ef

View File

@@ -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):