Implement basic permission check for message commands
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-11-22 17:08:31 +01:00
parent 11e4a07698
commit 655840dc82
6 changed files with 77 additions and 26 deletions

View File

@@ -88,7 +88,7 @@ public class ExpiredMessageTask implements Runnable {
}
// if this is a DM
if(msgChannelType == ChannelType.PRIVATE)
if(!(msgChannelType.isGuild()))
{
String userId = databaseSource.getTrackedReplyUserId(messageId);
User user = HidekoBot.getAPI().retrieveUserById(userId).complete();