mirror of
https://github.com/AsgardEternal/SquadJS.git
synced 2024-09-28 17:34:25 -05:00
Merge pull request #216 from Shanomac99/main
Changer layer image URL to new hosting location.
This commit is contained in:
commit
f2a2b49c55
@ -2,6 +2,7 @@ export default class Layer {
|
|||||||
constructor(data) {
|
constructor(data) {
|
||||||
this.name = data.Name;
|
this.name = data.Name;
|
||||||
this.classname = data.levelName;
|
this.classname = data.levelName;
|
||||||
|
this.layerid = data.rawName
|
||||||
this.map = {
|
this.map = {
|
||||||
name: data.mapName
|
name: data.mapName
|
||||||
};
|
};
|
||||||
|
@ -89,7 +89,7 @@ export default class DiscordServerStatus extends DiscordBaseMessageUpdater {
|
|||||||
// Set layer image.
|
// Set layer image.
|
||||||
embed.setImage(
|
embed.setImage(
|
||||||
this.server.currentLayer
|
this.server.currentLayer
|
||||||
? `https://raw.githubusercontent.com/Squad-Wiki-Editorial/squad-wiki-pipeline-map-data/master/completed_output/_Current%20Version/images/${this.server.currentLayer.classname}.jpg`
|
? `https://squad-data.nyc3.cdn.digitaloceanspaces.com/main/${this.server.currentLayer.layerid}.jpg`
|
||||||
: undefined
|
: undefined
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user