Skip to content

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

@blackfoxdeveloper

Description

@blackfoxdeveloper

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions