Class GuildUpdateNameEvent

  • All Implemented Interfaces:
    GenericEvent, UpdateEvent<Guild,​java.lang.String>

    public class GuildUpdateNameEvent
    extends GenericGuildUpdateEvent<java.lang.String>
    Indicates that the name of a Guild changed.

    Can be used to detect when a guild name changes and retrieve the old one

    Identifier: name

    • Constructor Detail

      • GuildUpdateNameEvent

        public GuildUpdateNameEvent​(@Nonnull
                                    JDA api,
                                    long responseNumber,
                                    @Nonnull
                                    Guild guild,
                                    @Nonnull
                                    java.lang.String oldName)
    • Method Detail

      • getOldName

        @Nonnull
        public java.lang.String getOldName()
        The old name
        Returns:
        The old name
      • getNewName

        @Nonnull
        public java.lang.String getNewName()
        The new name
        Returns:
        The new name