Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for ionCube Encoder)
- *
- * @ Version : 4.0.9.0
- * @ Author : DeZender
- * @ Release on : 08.08.2019
- * @ Official site : http://DeZender.Net
- *
- */
- namespace WHMCS\Module\Notification\Discord;
- global $zzV583kAMkjAfikdsjfkiss;
- $zzV583kAMkjAfikdsjfkiss = 'Alkjgfdksljiju8jklosavsdfagsadfweafawefVGDSvsdfer';
- if (!function_exists('dpldiscord_functionExists')) {
- require_once __DIR__ . '/lib/instance.php';
- }
- class Discord implements \WHMCS\Module\Contracts\NotificationModuleInterface
- {
- use \WHMCS\Module\Notification\DescriptionTrait;
- public function settings()
- {
- return [
- 'api_username' => ['FriendlyName' => 'Default Webhook URL', 'Type' => 'text', 'Description' => 'Webhook URL to your default Discord channel. Can be overwritten per notification.'],
- 'discord_username' => ['FriendlyName' => 'Discord Username', 'Type' => 'text', 'Description' => 'The username is specified as sender. It does not have to be an existing user.'],
- 'discord_avatar' => ['FriendlyName' => 'Discord Avatar', 'Type' => 'text', 'Description' => 'URL to an image which should be used as avatar. Can be empty.'],
- 'licensekey' => ['FriendlyName' => 'License Key', 'Type' => 'text', 'Description' => 'Enter your license key from deploymentcode']
- ];
- }
- public function notificationSettings()
- {
- return [
- 'discord_priority' => [
- 'FriendlyName' => 'Notification Priority',
- 'Type' => 'dynamic',
- 'Options' => ['Low', 'Medium', 'High'],
- 'Description' => 'Choose the notification priority for the alert.'
- ],
- 'discord_hookurl' => ['FriendlyName' => 'Custom Webhook URL', 'Type' => 'text', 'Description' => 'Leave empty to use the default channel'],
- 'discord_customiseMessage' => ['FriendlyName' => '<br />Customise Message', 'Type' => 'textarea', 'Description' => 'Allows you to customise the primary display message shown in the notification.']
- ];
- }
- public function getDynamicField($fieldName, $settings)
- {
- if ($fieldName === 'discord_priority') {
- ......................................................
- .................................
- ..........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement