Skip to content

Commit

Permalink
replace img with the github one
Browse files Browse the repository at this point in the history
  • Loading branch information
napalmpapalam committed Dec 11, 2023
1 parent 53d1ab7 commit 62e81ef
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/actions/verify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,10 @@ 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 @@ -40,7 +35,11 @@ export const handleVerifyAction = async (interaction: DiscordActionRequest) => {
],
// https://gist.github.com/thomasbnt/b6f455e2c7d743b796917fa3c205f812
color: 3447003,
image: { url: join(host, '/thumbnail.png'), height: 512, width: 896 },
image: {
url: 'https://raw.githubusercontent.com/rarimo/collabland-rarimo-poh-action/main/public/thumbnail.png',
height: 512,
width: 896,
},
},
],
components: [
Expand Down

0 comments on commit 62e81ef

Please sign in to comment.