Java Code Examples for com.google.api.services.calendar.model.EventDateTime#setDateTime()
The following examples show how to use
com.google.api.services.calendar.model.EventDateTime#setDateTime() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GoogleCalendarImporter.java From data-transfer-project with Apache License 2.0 | 6 votes |
private static EventDateTime getEventDateTime(CalendarEventModel.CalendarEventTime dateTime) { if (dateTime == null) { return null; } EventDateTime eventDateTime = new EventDateTime(); // google's APIs want millisecond from epoch, and the timezone offset in minutes. if (dateTime.isDateOnly()) { eventDateTime.setDate(new DateTime(true, dateTime.getDateTime().toEpochSecond() * 1000, dateTime.getDateTime().getOffset().getTotalSeconds() / 60)); } else { eventDateTime.setDateTime(new DateTime( dateTime.getDateTime().toEpochSecond() * 1000, dateTime.getDateTime().getOffset().getTotalSeconds() / 60)); } return eventDateTime; }
Example 2
Source File: GoogleCalendarEventModel.java From syndesis with Apache License 2.0 | 5 votes |
private EventDateTime getStart() { final EventDateTime start = new EventDateTime(); if (startTime == null) { start.setDate(DateTime.parseRfc3339(startDate)); } else { start.setDateTime(DateTime.parseRfc3339(startDate + "T" + startTime)); } return start; }
Example 3
Source File: GoogleCalendarEventModel.java From syndesis with Apache License 2.0 | 5 votes |
private EventDateTime getEnd() { final EventDateTime end = new EventDateTime(); if (endTime == null) { end.setDate(DateTime.parseRfc3339(endDate)); } else { end.setDateTime(DateTime.parseRfc3339(endDate + "T" + endTime)); } return end; }
Example 4
Source File: EventCommand.java From DisCal-Discord-Bot with GNU Lesser General Public License v3.0 | 4 votes |
private void moduleStartDate(String[] args, MessageCreateEvent event, GuildSettings settings) { if (args.length == 2) { if (EventCreator.getCreator().hasPreEvent(settings.getGuildID())) { String dateRaw = args[1].trim(); if (dateRaw.length() > 10) { try { //Do a lot of date shuffling to get to proper formats and shit like that. SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd-HH:mm:ss"); TimeZone tz = TimeZone.getTimeZone(EventCreator.getCreator().getPreEvent(settings.getGuildID()).getTimeZone()); sdf.setTimeZone(tz); Date dateObj = sdf.parse(dateRaw); DateTime dateTime = new DateTime(dateObj); EventDateTime eventDateTime = new EventDateTime(); eventDateTime.setDateTime(dateTime); //Wait! Lets check now if its in the future and not the past! if (!TimeUtils.inPast(dateRaw, tz) && !TimeUtils.startAfterEnd(dateRaw, tz, EventCreator.getCreator().getPreEvent(settings.getGuildID()))) { //Date shuffling done, now actually apply all that damn stuff here. EventCreator.getCreator().getPreEvent(settings.getGuildID()).setStartDateTime(eventDateTime); //Apply viewable date/times... SimpleDateFormat sdfV = new SimpleDateFormat("yyyy/MM/dd-HH:mm:ss"); Date dateObjV = sdfV.parse(dateRaw); DateTime dateTimeV = new DateTime(dateObjV); EventDateTime eventDateTimeV = new EventDateTime(); eventDateTimeV.setDateTime(dateTimeV); EventCreator.getCreator().getPreEvent(settings.getGuildID()).setViewableStartDate(eventDateTimeV); //To streamline, check if event end is null, if so, apply 2 hour duration! if (EventCreator.getCreator().getPreEvent(settings.getGuildID()).getEndDateTime() == null) { EventDateTime end = EventCreator.getCreator().getPreEvent(settings.getGuildID()).getStartDateTime().clone(); long endLong = end.getDateTime().getValue() + 3600000; //Add an hour end.setDateTime(new DateTime(endLong)); EventCreator.getCreator().getPreEvent(settings.getGuildID()).setEndDateTime(end); //Viewable date EventDateTime endV = EventCreator.getCreator().getPreEvent(settings.getGuildID()).getViewableStartDate().clone(); long endVLong = endV.getDateTime().getValue() + 3600000; //Add an hour endV.setDateTime(new DateTime(endVLong)); EventCreator.getCreator().getPreEvent(settings.getGuildID()).setViewableEndDate(endV); } if (EventCreator.getCreator().hasCreatorMessage(settings.getGuildID())) { MessageManager.deleteMessage(event); MessageManager.deleteMessage(EventCreator.getCreator().getCreatorMessage(settings.getGuildID())); EventCreator.getCreator().setCreatorMessage(MessageManager.sendMessageSync(MessageManager.getMessage("Creator.Event.Start.Success.New", settings), EventMessageFormatter.getPreEventEmbed(EventCreator.getCreator().getPreEvent(settings.getGuildID()), settings), event)); } else { String msg = MessageManager.getMessage("Creator.Event.Start.Success", settings); msg = msg.replaceAll("%date%", EventMessageFormatter.getHumanReadableDate(eventDateTimeV, settings, true)).replaceAll("%time%", EventMessageFormatter.getHumanReadableTime(eventDateTimeV, settings, true)); MessageManager.sendMessageAsync(msg, event); } } else { //Oops! Time is in the past or after end... if (EventCreator.getCreator().hasCreatorMessage(settings.getGuildID())) { MessageManager.deleteMessage(event); MessageManager.deleteMessage(EventCreator.getCreator().getCreatorMessage(settings.getGuildID())); EventCreator.getCreator().setCreatorMessage(MessageManager.sendMessageSync(MessageManager.getMessage("Creator.Event.Start.Failure.Illegal", settings), EventMessageFormatter.getPreEventEmbed(EventCreator.getCreator().getPreEvent(settings.getGuildID()), settings), event)); } else { MessageManager.sendMessageAsync(MessageManager.getMessage("Creator.Event.Start.Failure.Illegal", settings), event); } } } catch (ParseException e) { if (EventCreator.getCreator().hasCreatorMessage(settings.getGuildID())) { MessageManager.deleteMessage(event); MessageManager.deleteMessage(EventCreator.getCreator().getCreatorMessage(settings.getGuildID())); EventCreator.getCreator().setCreatorMessage(MessageManager.sendMessageSync(MessageManager.getMessage("Creator.Event.Time.Invalid", settings), EventMessageFormatter.getPreEventEmbed(EventCreator.getCreator().getPreEvent(settings.getGuildID()), settings), event)); } else { MessageManager.sendMessageAsync(MessageManager.getMessage("Creator.Event.Time.Invalid", settings), event); } } } else { if (EventCreator.getCreator().hasCreatorMessage(settings.getGuildID())) { MessageManager.deleteMessage(event); MessageManager.deleteMessage(EventCreator.getCreator().getCreatorMessage(settings.getGuildID())); EventCreator.getCreator().setCreatorMessage(MessageManager.sendMessageSync(MessageManager.getMessage("Creator.Event.Time.InvalidFormat", settings), EventMessageFormatter.getPreEventEmbed(EventCreator.getCreator().getPreEvent(settings.getGuildID()), settings), event)); } else { MessageManager.sendMessageAsync(MessageManager.getMessage("Creator.Event.Time.InvalidFormat", settings), event); } } } else { MessageManager.sendMessageAsync(MessageManager.getMessage("Creator.Event.NotInit", settings), event); } } else { if (EventCreator.getCreator().hasCreatorMessage(settings.getGuildID())) { MessageManager.deleteMessage(event); MessageManager.deleteMessage(EventCreator.getCreator().getCreatorMessage(settings.getGuildID())); EventCreator.getCreator().setCreatorMessage(MessageManager.sendMessageSync(MessageManager.getMessage("Creator.Event.Start.Specify", settings), EventMessageFormatter.getPreEventEmbed(EventCreator.getCreator().getPreEvent(settings.getGuildID()), settings), event)); } else { MessageManager.sendMessageAsync(MessageManager.getMessage("Creator.Event.Start.Specify", settings), event); } } }
Example 5
Source File: EventCommand.java From DisCal-Discord-Bot with GNU Lesser General Public License v3.0 | 4 votes |
private void moduleEndDate(String[] args, MessageCreateEvent event, GuildSettings settings) { if (args.length == 2) { if (EventCreator.getCreator().hasPreEvent(settings.getGuildID())) { String dateRaw = args[1].trim(); if (dateRaw.length() > 10) { try { //Do a lot of date shuffling to get to proper formats and shit like that. SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd-HH:mm:ss"); TimeZone tz = TimeZone.getTimeZone(EventCreator.getCreator().getPreEvent(settings.getGuildID()).getTimeZone()); sdf.setTimeZone(tz); Date dateObj = sdf.parse(dateRaw); DateTime dateTime = new DateTime(dateObj); EventDateTime eventDateTime = new EventDateTime(); eventDateTime.setDateTime(dateTime); //Wait! Lets check now if its in the future and not the past! if (!TimeUtils.inPast(dateRaw, tz) && !TimeUtils.endBeforeStart(dateRaw, tz, EventCreator.getCreator().getPreEvent(settings.getGuildID()))) { //Date shuffling done, now actually apply all that damn stuff here. EventCreator.getCreator().getPreEvent(settings.getGuildID()).setEndDateTime(eventDateTime); //Apply viewable date/times... SimpleDateFormat sdfV = new SimpleDateFormat("yyyy/MM/dd-HH:mm:ss"); Date dateObjV = sdfV.parse(dateRaw); DateTime dateTimeV = new DateTime(dateObjV); EventDateTime eventDateTimeV = new EventDateTime(); eventDateTimeV.setDateTime(dateTimeV); EventCreator.getCreator().getPreEvent(settings.getGuildID()).setViewableEndDate(eventDateTimeV); if (EventCreator.getCreator().hasCreatorMessage(settings.getGuildID())) { MessageManager.deleteMessage(event); MessageManager.deleteMessage(EventCreator.getCreator().getCreatorMessage(settings.getGuildID())); EventCreator.getCreator().setCreatorMessage(MessageManager.sendMessageSync(MessageManager.getMessage("Creator.Event.End.Success.New", settings), EventMessageFormatter.getPreEventEmbed(EventCreator.getCreator().getPreEvent(settings.getGuildID()), settings), event)); } else { String msg = MessageManager.getMessage("Creator.Event.End.Success", settings); msg = msg.replaceAll("%date%", EventMessageFormatter.getHumanReadableDate(eventDateTimeV, settings, true)).replaceAll("%time%", EventMessageFormatter.getHumanReadableTime(eventDateTimeV, settings, true)); MessageManager.sendMessageAsync(msg, event); } } else { //Oops! Time is in the past or before the starting time... if (EventCreator.getCreator().hasCreatorMessage(settings.getGuildID())) { MessageManager.deleteMessage(event); MessageManager.deleteMessage(EventCreator.getCreator().getCreatorMessage(settings.getGuildID())); EventCreator.getCreator().setCreatorMessage(MessageManager.sendMessageSync(MessageManager.getMessage("Creator.Event.End.Failure.Illegal", settings), EventMessageFormatter.getPreEventEmbed(EventCreator.getCreator().getPreEvent(settings.getGuildID()), settings), event)); } else { MessageManager.sendMessageAsync(MessageManager.getMessage("Creator.Event.End.Failure.Illegal", settings), event); } } } catch (ParseException e) { if (EventCreator.getCreator().hasCreatorMessage(settings.getGuildID())) { MessageManager.deleteMessage(event); MessageManager.deleteMessage(EventCreator.getCreator().getCreatorMessage(settings.getGuildID())); EventCreator.getCreator().setCreatorMessage(MessageManager.sendMessageSync(MessageManager.getMessage("Creator.Event.Time.Invalid", settings), EventMessageFormatter.getPreEventEmbed(EventCreator.getCreator().getPreEvent(settings.getGuildID()), settings), event)); } else { MessageManager.sendMessageAsync(MessageManager.getMessage("Creator.Event.Time.Invalid", settings), event); } } } else { if (EventCreator.getCreator().hasCreatorMessage(settings.getGuildID())) { MessageManager.deleteMessage(event); MessageManager.deleteMessage(EventCreator.getCreator().getCreatorMessage(settings.getGuildID())); EventCreator.getCreator().setCreatorMessage(MessageManager.sendMessageSync(MessageManager.getMessage("Creator.Event.Time.InvalidFormat", settings), EventMessageFormatter.getPreEventEmbed(EventCreator.getCreator().getPreEvent(settings.getGuildID()), settings), event)); } else { MessageManager.sendMessageAsync(MessageManager.getMessage("Creator.Event.Time.InvalidFormat", settings), event); } } } else { MessageManager.sendMessageAsync(MessageManager.getMessage("Creator.Event.NotInit", settings), event); } } else { if (EventCreator.getCreator().hasCreatorMessage(settings.getGuildID())) { MessageManager.deleteMessage(event); MessageManager.deleteMessage(EventCreator.getCreator().getCreatorMessage(settings.getGuildID())); EventCreator.getCreator().setCreatorMessage(MessageManager.sendMessageSync(MessageManager.getMessage("Creator.Event.End.Specify", settings), EventMessageFormatter.getPreEventEmbed(EventCreator.getCreator().getPreEvent(settings.getGuildID()), settings), event)); } else { MessageManager.sendMessageAsync(MessageManager.getMessage("Creator.Event.End.Specify", settings), event); } } }
Example 6
Source File: EventCommand.java From DisCal-Discord-Bot with GNU Lesser General Public License v3.0 | 4 votes |
private void moduleStartDate(String[] args, MessageCreateEvent event, GuildSettings settings) { if (args.length == 2) { if (EventCreator.getCreator().hasPreEvent(settings.getGuildID())) { String dateRaw = args[1].trim(); if (dateRaw.length() > 10) { try { //Do a lot of date shuffling to get to proper formats and shit like that. SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd-HH:mm:ss"); TimeZone tz = TimeZone.getTimeZone(EventCreator.getCreator().getPreEvent(settings.getGuildID()).getTimeZone()); sdf.setTimeZone(tz); Date dateObj = sdf.parse(dateRaw); DateTime dateTime = new DateTime(dateObj); EventDateTime eventDateTime = new EventDateTime(); eventDateTime.setDateTime(dateTime); //Wait! Lets check now if its in the future and not the past! if (!TimeUtils.inPast(dateRaw, tz) && !TimeUtils.startAfterEnd(dateRaw, tz, EventCreator.getCreator().getPreEvent(settings.getGuildID()))) { //Date shuffling done, now actually apply all that damn stuff here. EventCreator.getCreator().getPreEvent(settings.getGuildID()).setStartDateTime(eventDateTime); //Apply viewable date/times... SimpleDateFormat sdfV = new SimpleDateFormat("yyyy/MM/dd-HH:mm:ss"); Date dateObjV = sdfV.parse(dateRaw); DateTime dateTimeV = new DateTime(dateObjV); EventDateTime eventDateTimeV = new EventDateTime(); eventDateTimeV.setDateTime(dateTimeV); EventCreator.getCreator().getPreEvent(settings.getGuildID()).setViewableStartDate(eventDateTimeV); //To streamline, check if event end is null, if so, apply 2 hour duration! if (EventCreator.getCreator().getPreEvent(settings.getGuildID()).getEndDateTime() == null) { EventDateTime end = EventCreator.getCreator().getPreEvent(settings.getGuildID()).getStartDateTime().clone(); long endLong = end.getDateTime().getValue() + 3600000; //Add an hour end.setDateTime(new DateTime(endLong)); EventCreator.getCreator().getPreEvent(settings.getGuildID()).setEndDateTime(end); //Viewable date EventDateTime endV = EventCreator.getCreator().getPreEvent(settings.getGuildID()).getViewableStartDate().clone(); long endVLong = endV.getDateTime().getValue() + 3600000; //Add an hour endV.setDateTime(new DateTime(endVLong)); EventCreator.getCreator().getPreEvent(settings.getGuildID()).setViewableEndDate(endV); } if (EventCreator.getCreator().hasCreatorMessage(settings.getGuildID())) { MessageManager.deleteMessage(event); MessageManager.deleteMessage(EventCreator.getCreator().getCreatorMessage(settings.getGuildID())); EventCreator.getCreator().setCreatorMessage(MessageManager.sendMessageSync(MessageManager.getMessage("Creator.Event.Start.Success.New", settings), EventMessageFormatter.getPreEventEmbed(EventCreator.getCreator().getPreEvent(settings.getGuildID()), settings), event)); } else { String msg = MessageManager.getMessage("Creator.Event.Start.Success", settings); msg = msg.replaceAll("%date%", EventMessageFormatter.getHumanReadableDate(eventDateTimeV, settings, true)).replaceAll("%time%", EventMessageFormatter.getHumanReadableTime(eventDateTimeV, settings, true)); MessageManager.sendMessageAsync(msg, event); } } else { //Oops! Time is in the past or after end... if (EventCreator.getCreator().hasCreatorMessage(settings.getGuildID())) { MessageManager.deleteMessage(event); MessageManager.deleteMessage(EventCreator.getCreator().getCreatorMessage(settings.getGuildID())); EventCreator.getCreator().setCreatorMessage(MessageManager.sendMessageSync(MessageManager.getMessage("Creator.Event.Start.Failure.Illegal", settings), EventMessageFormatter.getPreEventEmbed(EventCreator.getCreator().getPreEvent(settings.getGuildID()), settings), event)); } else { MessageManager.sendMessageAsync(MessageManager.getMessage("Creator.Event.Start.Failure.Illegal", settings), event); } } } catch (ParseException e) { if (EventCreator.getCreator().hasCreatorMessage(settings.getGuildID())) { MessageManager.deleteMessage(event); MessageManager.deleteMessage(EventCreator.getCreator().getCreatorMessage(settings.getGuildID())); EventCreator.getCreator().setCreatorMessage(MessageManager.sendMessageSync(MessageManager.getMessage("Creator.Event.Time.Invalid", settings), EventMessageFormatter.getPreEventEmbed(EventCreator.getCreator().getPreEvent(settings.getGuildID()), settings), event)); } else { MessageManager.sendMessageAsync(MessageManager.getMessage("Creator.Event.Time.Invalid", settings), event); } } } else { if (EventCreator.getCreator().hasCreatorMessage(settings.getGuildID())) { MessageManager.deleteMessage(event); MessageManager.deleteMessage(EventCreator.getCreator().getCreatorMessage(settings.getGuildID())); EventCreator.getCreator().setCreatorMessage(MessageManager.sendMessageSync(MessageManager.getMessage("Creator.Event.Time.InvalidFormat", settings), EventMessageFormatter.getPreEventEmbed(EventCreator.getCreator().getPreEvent(settings.getGuildID()), settings), event)); } else { MessageManager.sendMessageAsync(MessageManager.getMessage("Creator.Event.Time.InvalidFormat", settings), event); } } } else { MessageManager.sendMessageAsync(MessageManager.getMessage("Creator.Event.NotInit", settings), event); } } else { if (EventCreator.getCreator().hasCreatorMessage(settings.getGuildID())) { MessageManager.deleteMessage(event); MessageManager.deleteMessage(EventCreator.getCreator().getCreatorMessage(settings.getGuildID())); EventCreator.getCreator().setCreatorMessage(MessageManager.sendMessageSync(MessageManager.getMessage("Creator.Event.Start.Specify", settings), EventMessageFormatter.getPreEventEmbed(EventCreator.getCreator().getPreEvent(settings.getGuildID()), settings), event)); } else { MessageManager.sendMessageAsync(MessageManager.getMessage("Creator.Event.Start.Specify", settings), event); } } }
Example 7
Source File: EventCommand.java From DisCal-Discord-Bot with GNU Lesser General Public License v3.0 | 4 votes |
private void moduleEndDate(String[] args, MessageCreateEvent event, GuildSettings settings) { if (args.length == 2) { if (EventCreator.getCreator().hasPreEvent(settings.getGuildID())) { String dateRaw = args[1].trim(); if (dateRaw.length() > 10) { try { //Do a lot of date shuffling to get to proper formats and shit like that. SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd-HH:mm:ss"); TimeZone tz = TimeZone.getTimeZone(EventCreator.getCreator().getPreEvent(settings.getGuildID()).getTimeZone()); sdf.setTimeZone(tz); Date dateObj = sdf.parse(dateRaw); DateTime dateTime = new DateTime(dateObj); EventDateTime eventDateTime = new EventDateTime(); eventDateTime.setDateTime(dateTime); //Wait! Lets check now if its in the future and not the past! if (!TimeUtils.inPast(dateRaw, tz) && !TimeUtils.endBeforeStart(dateRaw, tz, EventCreator.getCreator().getPreEvent(settings.getGuildID()))) { //Date shuffling done, now actually apply all that damn stuff here. EventCreator.getCreator().getPreEvent(settings.getGuildID()).setEndDateTime(eventDateTime); //Apply viewable date/times... SimpleDateFormat sdfV = new SimpleDateFormat("yyyy/MM/dd-HH:mm:ss"); Date dateObjV = sdfV.parse(dateRaw); DateTime dateTimeV = new DateTime(dateObjV); EventDateTime eventDateTimeV = new EventDateTime(); eventDateTimeV.setDateTime(dateTimeV); EventCreator.getCreator().getPreEvent(settings.getGuildID()).setViewableEndDate(eventDateTimeV); if (EventCreator.getCreator().hasCreatorMessage(settings.getGuildID())) { MessageManager.deleteMessage(event); MessageManager.deleteMessage(EventCreator.getCreator().getCreatorMessage(settings.getGuildID())); EventCreator.getCreator().setCreatorMessage(MessageManager.sendMessageSync(MessageManager.getMessage("Creator.Event.End.Success.New", settings), EventMessageFormatter.getPreEventEmbed(EventCreator.getCreator().getPreEvent(settings.getGuildID()), settings), event)); } else { String msg = MessageManager.getMessage("Creator.Event.End.Success", settings); msg = msg.replaceAll("%date%", EventMessageFormatter.getHumanReadableDate(eventDateTimeV, settings, true)).replaceAll("%time%", EventMessageFormatter.getHumanReadableTime(eventDateTimeV, settings, true)); MessageManager.sendMessageAsync(msg, event); } } else { //Oops! Time is in the past or before the starting time... if (EventCreator.getCreator().hasCreatorMessage(settings.getGuildID())) { MessageManager.deleteMessage(event); MessageManager.deleteMessage(EventCreator.getCreator().getCreatorMessage(settings.getGuildID())); EventCreator.getCreator().setCreatorMessage(MessageManager.sendMessageSync(MessageManager.getMessage("Creator.Event.End.Failure.Illegal", settings), EventMessageFormatter.getPreEventEmbed(EventCreator.getCreator().getPreEvent(settings.getGuildID()), settings), event)); } else { MessageManager.sendMessageAsync(MessageManager.getMessage("Creator.Event.End.Failure.Illegal", settings), event); } } } catch (ParseException e) { if (EventCreator.getCreator().hasCreatorMessage(settings.getGuildID())) { MessageManager.deleteMessage(event); MessageManager.deleteMessage(EventCreator.getCreator().getCreatorMessage(settings.getGuildID())); EventCreator.getCreator().setCreatorMessage(MessageManager.sendMessageSync(MessageManager.getMessage("Creator.Event.Time.Invalid", settings), EventMessageFormatter.getPreEventEmbed(EventCreator.getCreator().getPreEvent(settings.getGuildID()), settings), event)); } else { MessageManager.sendMessageAsync(MessageManager.getMessage("Creator.Event.Time.Invalid", settings), event); } } } else { if (EventCreator.getCreator().hasCreatorMessage(settings.getGuildID())) { MessageManager.deleteMessage(event); MessageManager.deleteMessage(EventCreator.getCreator().getCreatorMessage(settings.getGuildID())); EventCreator.getCreator().setCreatorMessage(MessageManager.sendMessageSync(MessageManager.getMessage("Creator.Event.Time.InvalidFormat", settings), EventMessageFormatter.getPreEventEmbed(EventCreator.getCreator().getPreEvent(settings.getGuildID()), settings), event)); } else { MessageManager.sendMessageAsync(MessageManager.getMessage("Creator.Event.Time.InvalidFormat", settings), event); } } } else { MessageManager.sendMessageAsync(MessageManager.getMessage("Creator.Event.NotInit", settings), event); } } else { if (EventCreator.getCreator().hasCreatorMessage(settings.getGuildID())) { MessageManager.deleteMessage(event); MessageManager.deleteMessage(EventCreator.getCreator().getCreatorMessage(settings.getGuildID())); EventCreator.getCreator().setCreatorMessage(MessageManager.sendMessageSync(MessageManager.getMessage("Creator.Event.End.Specify", settings), EventMessageFormatter.getPreEventEmbed(EventCreator.getCreator().getPreEvent(settings.getGuildID()), settings), event)); } else { MessageManager.sendMessageAsync(MessageManager.getMessage("Creator.Event.End.Specify", settings), event); } } }