3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 20:35:02 +00:00

Add GuildArchives.getUrl for getting the archive entry URL

This commit is contained in:
Dragory 2019-01-15 04:03:04 +02:00
parent a2b7038b71
commit 429653c66d
3 changed files with 9 additions and 5 deletions

View file

@ -90,4 +90,8 @@ export class GuildArchives extends BaseRepository {
return this.create([headerStr, messagesStr].join("\n\n"), expiresAt);
}
getUrl(baseUrl, archiveId) {
return baseUrl ? `${baseUrl}/archives/${archiveId}` : `Archive ID: ${archiveId}`;
}
}