Embeds a Discord server widget in your site. Available as block as well as render template.
To embed the widget as a block, simply add the block to any region and input the relevant information. You will need access to the Discord's Server ID to input the field, which is available from inside the application.
To embed the widget programmatically, simply add it as a render array:
$widget = [
'#theme' => 'discord_widget',
'#server_id' => $my_server_id,
'#width' => 300, // Optional; defaults to 300.
'#height' => 500, // Optional; defaults to 500.
'#color_theme' => 'dark', // Optional; defaults to "dark".
];
Supporting organizations:
Put food on my table while I coded this.
Project information
- Project categories: Integrations
22 sites report using this module
- Created by yoruvo on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
8.x-1.3
released 25 December 2023
Works with Drupal: ^8 || ^9 || ^10
Update for Drupal 10 compatibility
Install:
Development version: 8.x-1.x-dev updated 25 Dec 2023 at 20:57 UTC


