Skip to content

Commit af560d5

Browse files
committed
use thumbnail url directly
1 parent 732775d commit af560d5

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

app/services/gamebridge/GameBridge.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ export default class GameBridge extends Service {
201201
.addTextDisplayComponents(text => text.setContent(desc))
202202
.setThumbnailAccessory(accessory =>
203203
accessory
204-
.setURL("attachment://thumb.png")
204+
.setURL(mapThumbnail)
205205
.setDescription(session.tags.join())
206206
)
207207
);
@@ -257,9 +257,6 @@ export default class GameBridge extends Service {
257257
new Discord.AttachmentBuilder(server.playerListImage).setName(
258258
"players.png"
259259
),
260-
new Discord.AttachmentBuilder(mapThumbnail).setName(
261-
"thumb.png"
262-
),
263260
],
264261
flags: Discord.MessageFlags.IsComponentsV2,
265262
});
@@ -270,9 +267,6 @@ export default class GameBridge extends Service {
270267
new Discord.AttachmentBuilder(server.playerListImage).setName(
271268
"players.png"
272269
),
273-
new Discord.AttachmentBuilder(mapThumbnail).setName(
274-
"thumb.png"
275-
),
276270
],
277271
flags: Discord.MessageFlags.IsComponentsV2,
278272
});

0 commit comments

Comments
 (0)