Skip to content

Commit

Permalink
Added some docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Almighty-Alpaca committed Oct 27, 2017
1 parent 017dae7 commit 5580542
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@

import net.dv8tion.jda.core.JDA;

/**
* <b><u>SelfUpdateMobileEvent</u></b><br>
* Fired if you login to your discord account with a mobile device for the first time.<br>
*/
public class SelfUpdateMobileEvent extends GenericSelfUpdateEvent
{
private final boolean wasMobile;
Expand All @@ -28,6 +32,11 @@ public SelfUpdateMobileEvent(JDA api, long responseNumber, boolean wasMobile)
this.wasMobile = wasMobile;
}

/**
* Returns the old mobile status. <i>Should</i> always be {@code false}.
*
* @return The mobile status.
*/
public boolean wasMobile()
{
return wasMobile;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@

import net.dv8tion.jda.core.JDA;

/**
* <b><u>SelfUpdateNitroEvent</u></b><br>
* Fired if you subscribe to nitro or your active nitro subscription runs out.<br>
*/
public class SelfUpdateNitroEvent extends GenericSelfUpdateEvent
{
private final boolean wasNitro;
Expand All @@ -28,6 +32,11 @@ public SelfUpdateNitroEvent(JDA api, long responseNumber, boolean wasNitro)
this.wasNitro = wasNitro;
}

/**
* Returns whether or not a nitro subscription used to be active before.
*
* @return The the old nitro subscription status.
*/
public boolean wasNitro()
{
return wasNitro;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@

import net.dv8tion.jda.core.JDA;

/**
* <b><u>SelfUpdatePhoneNumberEvent</u></b><br>
* Fired if you change the phone number associated with your account.<br>
*/
public class SelfUpdatePhoneNumberEvent extends GenericSelfUpdateEvent
{
private final String oldPhoneNumber;
Expand All @@ -28,6 +32,11 @@ public SelfUpdatePhoneNumberEvent(JDA api, long responseNumber, String oldPhoneN
this.oldPhoneNumber = oldPhoneNumber;
}

/**
* Returns the old phone number or {@code null} if no phone number was previously set.
*
* @return The old phone number or {@code null}.
*/
public String getOldPhoneNumber()
{
return oldPhoneNumber;
Expand Down

0 comments on commit 5580542

Please sign in to comment.