Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DiscordPHP will not run on a webserver. Please use PHP CLI to run a DiscordPHP bot. #51

Open
blackfoxdeveloper opened this issue Apr 9, 2021 · 0 comments

Comments

@blackfoxdeveloper
Copy link

blackfoxdeveloper commented Apr 9, 2021

I add step by step notification and after enter to page (page test notification) i see that error. Command in CLI i run

 php artisan discord:setup

 Is the bot already added to your server? (yes/no) [no]:
 > 

 What is your Discord app client ID?:
 > *********************

Add the bot to your server by visiting this link: https://discord.com/oauth2/authorize?&client_id=******************&scope=bot&permissions=0

 Continue? (yes/no) [yes]:
 > yes

Attempting to identify the bot with Discord's websocket gateway...
Connecting to 'wss://gateway.discord.gg'...
Your bot has been identified by Discord and can now send API requests!

Crush on line
app(Discord::class)->getPrivateChannel($discordId); //$discordId = discord_user_id

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant