Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Feature for editing existing Discord Message #19

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

yutamago
Copy link
Contributor

@yutamago yutamago commented Jun 22, 2023

WIP: needs testing

  • Added functionality to edit or replace an existing message.

  • Added 2 new optional input paramters:

    • updateMessageMode
      Specifies if and how you want to update an already existing message.
      none does not update an existing message, edit modifies an existing message, replace deletes an existing message and creates a new one.
      Default: none
    • updateMessageId
      Specifies which message to update. Defaults to environment variable discordWebhookLastMessageId, which is automatically set when a message is successfully created.
      If you need the messageId from another job or stage, you could utilize the output variable discordWebhookMessageId, which is also set by this task.
  • Added output variable: discordWebhookMessageId
    Automatically set to the message ID when successful. Can be used across stages/jobs. Requires the task to be named.

  • Added environment variable: discordWebhookLastMessageId
    Automatically set to the message ID when successful. Can be used within the same stage.

  • Added tests.

@yutamago yutamago changed the title Feature for editing existing Discord Message WIP: Feature for editing existing Discord Message Jun 22, 2023
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.

1 participant