Class AnnouncementManager

java.lang.Object
de.presti.ree6.news.AnnouncementManager

public class AnnouncementManager extends Object
Announcement Manager used to store and manage announcements.
  • Constructor Details

    • AnnouncementManager

      public AnnouncementManager()
  • Method Details

    • addAnnouncement

      public static void addAnnouncement(Announcement announcement)
      Method used to add an announcement to the list.
      Parameters:
      announcement - Announcement to add.
    • hasReceivedAnnouncement

      public static boolean hasReceivedAnnouncement(long guildId, String announcementId)
      Method used to check if a Guild already received an announcement.
      Parameters:
      guildId - The ID of the Guild.
      announcementId - The ID of the Announcement.
      Returns:
      True if the Guild already received the announcement.
    • addReceivedAnnouncement

      public static void addReceivedAnnouncement(long guildId, String announcementId)
      Method used to add an announcement to the received announcements of a Guild.
      Parameters:
      guildId - The ID of the Guild.
      announcementId - The ID of the Announcement.
    • removeAnnouncement

      public static void removeAnnouncement(String id)
      Method used to remove announcements from the list.
      Parameters:
      id - The ID of the announcement to remove.