44import com .jagrosh .jdautilities .command .SlashCommandEvent ;
55import net .dv8tion .jda .api .EmbedBuilder ;
66import net .dv8tion .jda .api .interactions .DiscordLocale ;
7+ import net .dv8tion .jda .api .interactions .InteractionContextType ;
78import net .dv8tion .jda .api .interactions .commands .OptionType ;
89import net .dv8tion .jda .api .interactions .commands .build .OptionData ;
910import pw .chew .mlb .util .MLBAPIUtil ;
@@ -18,7 +19,7 @@ public class StandingsCommand extends SlashCommand {
1819 public StandingsCommand () {
1920 this .name = "standings" ;
2021 this .help = "Get the current standings." ;
21- this .guildOnly = false ;
22+ this .contexts = new InteractionContextType []{ InteractionContextType . GUILD , InteractionContextType . BOT_DM , InteractionContextType . PRIVATE_CHANNEL } ;
2223 this .options = List .of (
2324 new OptionData (OptionType .STRING , "division" , "Select a division to view standings for!" , true )
2425 // hardcode MLB for now. eventually milb will be added
@@ -30,8 +31,6 @@ public StandingsCommand() {
3031 .addChoice ("NL West" , "National League West" )
3132 );
3233
33- // TODO: Future, make this installable in user contexts
34-
3534 this .descriptionLocalization = Map .of (
3635 DiscordLocale .ENGLISH_US , "Get the current standings." ,
3736 DiscordLocale .SPANISH , "Obtenga las posiciones actuales." ,
0 commit comments