All Implemented Interfaces:
Notifier

public class DiscordNotifier extends AbstractStatusChangeNotifier
Notifier submitting events to Discord by webhooks.
Author:
Movitz Sunar
See Also:
  • Constructor Details

    • DiscordNotifier

      public DiscordNotifier(InstanceRepository repository, org.springframework.web.client.RestTemplate restTemplate)
  • Method Details

    • doNotify

      protected reactor.core.publisher.Mono<Void> doNotify(InstanceEvent event, Instance instance)
      Specified by:
      doNotify in class AbstractEventNotifier
    • createDiscordNotification

      protected Object createDiscordNotification(InstanceEvent event, Instance instance)
    • createContent

      @Nullable protected @Nullable String createContent(InstanceEvent event, Instance instance)
    • getWebhookUrl

      @Nullable public @Nullable URI getWebhookUrl()
    • setWebhookUrl

      public void setWebhookUrl(@Nullable @Nullable URI webhookUrl)
    • isTts

      public boolean isTts()
    • setTts

      public void setTts(boolean tts)
    • getUsername

      @Nullable public @Nullable String getUsername()
    • setUsername

      public void setUsername(@Nullable @Nullable String username)
    • getAvatarUrl

      @Nullable public @Nullable String getAvatarUrl()
    • setAvatarUrl

      public void setAvatarUrl(@Nullable @Nullable String avatarUrl)
    • getMessage

      public String getMessage()
    • setMessage

      public void setMessage(String message)
    • setRestTemplate

      public void setRestTemplate(org.springframework.web.client.RestTemplate restTemplate)