public TextChannelUpdatePositionEvent(JDA api, long responseNumber, TextChannel channel, int oldPosition) { super(api, responseNumber, channel, oldPosition, channel.getPositionRaw(), IDENTIFIER); }
@Override public int compareTo(TextChannel chan) { Checks.notNull(chan, "Other TextChannel"); if (this == chan) return 0; Checks.check(getGuild().equals(chan.getGuild()), "Cannot compare TextChannels that aren't from the same guild!"); if (this.getPositionRaw() == chan.getPositionRaw()) return Long.compare(id, chan.getIdLong()); return Integer.compare(rawPosition, chan.getPositionRaw()); }