Skip to content

Commit

Permalink
change thumbnail
Browse files Browse the repository at this point in the history
  • Loading branch information
napalmpapalam committed Dec 11, 2023
1 parent fc415a0 commit 1226dc5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ The format is based on [Keep a Changelog], and this project adheres to [Semantic

### Changed
- Verify action texting
- Thumbnail image

### Fixed
- App icon url in the action metadata
Expand Down
Binary file removed public/thumbnail.jpg
Binary file not shown.
Binary file added public/thumbnail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 6 additions & 1 deletion src/actions/verify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,15 @@ import {
MessageFlags,
} from '@collabland/discord'
import { DiscordActionRequest } from '@collabland/discord'
import { join } from 'path'

import { config } from '@/config'

export const handleVerifyAction = async (interaction: DiscordActionRequest) => {
const host = config.appUrl.includes('localhost')
? 'https://collabland.robotornot.mainnet-beta.rarimo.com'
: config.appUrl

const response: APIInteractionResponse = {
type: InteractionResponseType.ChannelMessageWithSource,
data: {
Expand All @@ -35,7 +40,7 @@ export const handleVerifyAction = async (interaction: DiscordActionRequest) => {
],
// https://gist.github.com/thomasbnt/b6f455e2c7d743b796917fa3c205f812
color: 3447003,
image: { url: 'https://rarimo.com/img/branding/og-img.jpg', height: 256, width: 512 },
image: { url: join(host, '/thumbnail.png'), height: 512, width: 896 },
},
],
components: [
Expand Down

0 comments on commit 1226dc5

Please sign in to comment.