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

Feat: Function to send file #14

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

MashyBasker
Copy link

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