Skip to content

Submitting Samquotes time :))#32

Merged
Owen1212055 merged 6 commits intoMCDiamondFire:masterfrom
emeryllium:master
Mar 20, 2021
Merged

Submitting Samquotes time :))#32
Owen1212055 merged 6 commits intoMCDiamondFire:masterfrom
emeryllium:master

Conversation

@emeryllium
Copy link
Contributor

?samquote submit

long channelID = Long.parseLong(message[5]);
long messageID = Long.parseLong(message[6]);

Objects.requireNonNull(event.getGuild().getTextChannelById(channelID)).retrieveMessageById(messageID).queue((messageText) -> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Objects.requireNonNull isn't needed. Ignore your IDE when it bugs you. Instead, tell the user if the channel they submitted is null.

}

} else {

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look at preset builder. Look at other commands for reference.

@Owen1212055
Copy link
Contributor

Will be pushed when helpbot is restarted soon.

@Owen1212055 Owen1212055 merged commit f3626d1 into MCDiamondFire:master Mar 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants