Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Discord Widget

Security covered Under active development 17 sites

Part of the Discord ecosystem · 7 projects

This module allows you to embed a Discord server widget on your website. You can add it as a block through the Drupal admin interface or programmatically in your theme or custom module.

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".
];
Drupal 8–10 · not 11

Ask your assistant about Discord Widget

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Dec 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core PHP Release date
8.x-1.3 Stable 8–10 Dec 25, 2023