Update the series view command to be in greyscale if the user has not claimed the card (#297)
- Install `Jimp` package so we can manipulate images - Update the `ImageHelper` class to accept the user id so we can check if a user has claimed the card - Update the `/series view` command to pass the user id into the ImageHelper #279 Reviewed-on: #297 Reviewed-by: VylpesTester <tester@vylpes.com> Co-authored-by: Ethan Lane <ethan@vylpes.com> Co-committed-by: Ethan Lane <ethan@vylpes.com>
This commit is contained in:
parent
29bb22a819
commit
b6f814f895
8 changed files with 575 additions and 15 deletions
|
@ -60,7 +60,7 @@ export default class Series extends Command {
|
|||
return;
|
||||
}
|
||||
|
||||
const embed = await SeriesHelper.GenerateSeriesViewPage(series.id, 0);
|
||||
const embed = await SeriesHelper.GenerateSeriesViewPage(series.id, 0, interaction.user.id);
|
||||
|
||||
await interaction.followUp({
|
||||
embeds: [ embed!.embed ],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue