Skip to content

Commit 3463708

Browse files
authored
Update Game.ts
Don't post content message on archive
1 parent ce3903a commit 3463708

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/structures/Game.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,18 +187,20 @@ export default class Game extends BaseStructure {
187187
)}:R>`,
188188
inline: true,
189189
};
190+
let content = `[click here to view it on the website.](${this.config.host})`;
190191

191192
if (toArchive) {
192193
method = 'POST';
193194
url = this.webhookArchiveURL;
194195
lastField.name = 'Total Participants:';
195196
lastField.value = String(uniqueIDs.size);
197+
content = "";
196198
}
197199

198200
const payload = {
199201
username: 'Artboard',
200202
avatar_url: this.config.host + '/images/icon-avatar.png',
201-
content: `[click here to view it on the website.](${this.config.host})`,
203+
content,
202204
embeds: [
203205
{
204206
image: { url: 'attachment://image.png' },

0 commit comments

Comments
 (0)