Skip to content

Feat: discord action - #63

Open
Nicuschgifthub wants to merge 3 commits into
mainfrom
feat/#34
Open

Feat: discord action#63
Nicuschgifthub wants to merge 3 commits into
mainfrom
feat/#34

Conversation

@Nicuschgifthub

Copy link
Copy Markdown
Member

No description provided.

@Nicuschgifthub Nicuschgifthub self-assigned this Aug 10, 2026
@github-actions

github-actions Bot commented Aug 10, 2026

Copy link
Copy Markdown

GitLab Pipeline Action

General information

Link to pipeline: https://gitlab.com/code0-tech/development/centaurus/-/pipelines/2758971679

Status: Passed
Duration: 15 minutes

Job summaries

docs:preview

Documentation preview available at https://code0-tech.gitlab.io/-/development/telescopium/-/jobs/15891943644/artifacts/out/index.html

@Nicuschgifthub
Nicuschgifthub marked this pull request as draft August 12, 2026 16:34
Comment on lines +3 to +8
let clientInstance: Client | null = null;
let currentToken: string | null = null;

export function getDiscordClient(): Client | null {
return clientInstance;
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can multiply clients and multiply tokens

export class DiscordSendMessageFunction {
async run(_context: unknown, channelId: string, content: string, embed?: DiscordEmbedType): Promise<DiscordMessageType> {
try {
const client = getDiscordClient();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to grab the context to get the correct client

@nicosammito
nicosammito marked this pull request as ready for review August 18, 2026 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants