Skip to content

Commit d445699

Browse files
committed
Fixes the quotes being parsed in the context
1 parent 76e7013 commit d445699

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

src/main/java/com/mcmoddev/mmdbot/utilities/quotes/IQuote.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
*/
2121
package com.mcmoddev.mmdbot.utilities.quotes;
2222

23+
import com.mcmoddev.mmdbot.utilities.scripting.ExposeScripting;
2324
import net.dv8tion.jda.api.entities.MessageEmbed;
2425

2526
/**
@@ -43,6 +44,7 @@ public interface IQuote {
4344
/**
4445
* @return The person or object being quoted.
4546
*/
47+
@ExposeScripting
4648
UserReference getQuotee();
4749

4850
/**
@@ -55,6 +57,7 @@ public interface IQuote {
5557
/**
5658
* @return The person or object that created this quote.
5759
*/
60+
@ExposeScripting
5861
UserReference getQuoteAuthor();
5962

6063
/**
@@ -67,6 +70,7 @@ public interface IQuote {
6770
/**
6871
* @return The integer ID of this quote.
6972
*/
73+
@ExposeScripting
7074
int getID();
7175

7276
/**
@@ -81,13 +85,15 @@ public interface IQuote {
8185
*
8286
* @return A fully formed Embed ready for sending.
8387
*/
88+
@ExposeScripting
8489
MessageEmbed getQuoteMessage();
8590

8691
/**
8792
* Get the closest text representation of the thing being quoted.
8893
*
8994
* @return Depends on the subclass.
9095
*/
96+
@ExposeScripting
9197
String getQuoteText();
9298

9399
}

src/main/java/com/mcmoddev/mmdbot/utilities/quotes/Quote.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ public void setQuoteAuthor(final UserReference author) {
7777
* @return The person or object being quoted.
7878
*/
7979
@Override
80-
@ExposeScripting
8180
public UserReference getQuoteAuthor() {
8281
return creator;
8382
}
@@ -96,7 +95,6 @@ public void setQuotee(final UserReference target) {
9695
* @return The person or object that created this quote.
9796
*/
9897
@Override
99-
@ExposeScripting
10098
public UserReference getQuotee() {
10199
return quotee;
102100
}
@@ -115,7 +113,6 @@ public void setID(final int pId) {
115113
* @return The integer representing where in the list the Quote is.
116114
*/
117115
@Override
118-
@ExposeScripting
119116
public int getID() {
120117
return id;
121118
}

src/main/java/com/mcmoddev/mmdbot/utilities/quotes/StringQuote.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
*/
2121
package com.mcmoddev.mmdbot.utilities.quotes;
2222

23+
import com.mcmoddev.mmdbot.utilities.scripting.ExposeScripting;
2324
import net.dv8tion.jda.api.EmbedBuilder;
2425
import net.dv8tion.jda.api.entities.MessageEmbed;
2526

0 commit comments

Comments
 (0)