Skip to content

Feat: Function to send file - #14

Open
MashyBasker wants to merge 3 commits into
gtuk:mainfrom
MashyBasker:file-send-pr-branch
Open

Feat: Function to send file#14
MashyBasker wants to merge 3 commits into
gtuk:mainfrom
MashyBasker:file-send-pr-branch

Conversation

@MashyBasker

Copy link
Copy Markdown

Changes made

  • Add a function SendFile which allows the user to send a file to a discord webhook URL
  • Add the example usage to the examples/ folder and to the README.md
  • Add a github workflow to build and lint the golang code in .github/workflows

Motivation for the change

I needed a way to send files to a discord channel with golang for my own project. I implemented it after being inspired by the SendMessage code and wanted to add my code to this project as well.

Signed-off-by: Maharshi Basu <basumaharshi10@gmail.com>
Signed-off-by: Maharshi Basu <basumaharshi10@gmail.com>
Signed-off-by: Maharshi Basu <basumaharshi10@gmail.com>
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