-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodule.php
31 lines (29 loc) · 1.5 KB
/
module.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
use NamelessMC\Framework\Extend;
return [
(new Extend\Language(__DIR__ . '/language')),
(new Extend\PanelPages)
->registerInDropdown('integrations', '/discord', 'discord', 'discord_integration/discord', \NamelessMC\DiscordIntegration\Pages\Panel\Discord::class, 'admincp.discord', 'fab fa-discord'),
(new Extend\Permissions)
->register([
'staffcp' => [
'admincp.discord' => 'discord_integration/discord',
],
]),
(new Extend\DebugInfo)
->provide(\NamelessMC\DiscordIntegration\DebugInfoProvider::class),
(new Extend\Events)
->register(\NamelessMC\DiscordIntegration\Events\DiscordWebhookFormatterEvent::class),
(new Extend\Widgets)
->register(\NamelessMC\DiscordIntegration\Widgets\DiscordWidget::class),
(new Extend\GroupSync)
->register(\NamelessMC\DiscordIntegration\GroupSync\DiscordGroupSyncInjector::class),
(new Extend\Integrations)
->register(\NamelessMC\DiscordIntegration\Integration\DiscordIntegration::class),
(new Extend\Endpoints)
->register(\NamelessMC\DiscordIntegration\Api\SetDiscordRolesEndpoint::class)
->register(\NamelessMC\DiscordIntegration\Api\SubmitDiscordRoleListEndpoint::class)
->register(\NamelessMC\DiscordIntegration\Api\SyncDiscordRolesEndpoint::class)
->register(\NamelessMC\DiscordIntegration\Api\UpdateDiscordBotSettingsEndpoint::class)
->register(\NamelessMC\DiscordIntegration\Api\UpdateDiscordUsernames::class),
];