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) {
|
||||
this.name = data.Name;
|
||||
this.classname = data.levelName;
|
||||
this.layerid = data.rawName
|
||||
this.map = {
|
||||
name: data.mapName
|
||||
};
|
||||
|
@ -89,7 +89,7 @@ export default class DiscordServerStatus extends DiscordBaseMessageUpdater {
|
||||
// Set layer image.
|
||||
embed.setImage(
|
||||
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
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user