Added check for resolutions in map send
This commit is contained in:
parent
d7b866d98d
commit
04dceef022
@ -316,11 +316,13 @@ function NetworkedMapAndTokens({ session }) {
|
||||
replyWithFile("ultra");
|
||||
break;
|
||||
case "original":
|
||||
if (map.resolutions) {
|
||||
if (map.resolutions.medium) {
|
||||
replyWithPreview("medium");
|
||||
} else if (map.resolutions.low) {
|
||||
replyWithPreview("low");
|
||||
}
|
||||
}
|
||||
replyWithFile();
|
||||
break;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user