
MIT License, © David Cole and other contributers 2016-present. Please run php-cs-fixer before opening a pull request by running composer run-script cs. However, please make sure you follow our coding standards (PSR-4 autoloading and custom styling). Community contributed tutorials can be found on the wiki. Documentationĭocumentation for the latest version can be found here. Note: MESSAGE_CONTENT intent must be enabled to get the content if the bot is not mentioned/DMed. $discord-> on( 'ready', function ( Discord $discord) ", PHP_EOL
DISCORD CHATBOT API HOW TO
To learn how to use Discord's API to empower your application and create awesome bots for your communities. | Intents::MESSAGE_CONTENT, // Note: MESSAGE_CONTENT is privileged, see Discord's Official API D 3 years ago Updated Making an app on Discord opens up many possibilities for deeper integrations with your other services and platforms. 'intents' => Intents:: getDefaultIntents()
DISCORD CHATBOT API INSTALL

Try unlimit your PHP memory using ini_set('memory_limit', '-1').

If you want to have an interface for your bot you can integrate react/http with your bot and run it through CLI. Can I run DiscordPHP on a webserver (e.g.This branch contains an experimental feature, do not use it in production! See the wiki page for more information on how to set it up.
