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

Support attached images when issuing warnings to user #1780

Closed
wants to merge 1 commit into from

Conversation

Sasiko
Copy link

@Sasiko Sasiko commented Dec 1, 2024

The purpose is to allow moderators to add an attached image when issuing a warning to a user. Usecase would be a screenshot of the offense like DM advertisement

/warnings will show attached image as part of the warning "reason".

bild

The purpose is to allow moderators to add an attached image when issuing a warning to a user. Usecase would be a screenshot of the offense like DM advertisement

/warnings will show attached image as part of the warning "reason".
@ashishjh-bst
Copy link
Contributor

First, you must read contributing guidelines, and know how to raise a PR.
Second, the attachment link would become invalid as soon as the original moderation message is deleted, so this just extends the functionality to store dud urls.

@ashishjh-bst ashishjh-bst changed the base branch from master to dev December 1, 2024 18:12
@ashishjh-bst
Copy link
Contributor

Also, this doesn't compile, please build your code locally before sending in PRs.

# github.com/botlabs-gg/yagpdb/v2/moderation
../../moderation/commands.go:900:114: not enough arguments in call to WarnUser
        have (*Config, int64, *dstate.ChannelState, *discordgo.Message, *discordgo.User, *discordgo.User, string)
        want (*Config, int64, *dstate.ChannelState, *discordgo.Message, *discordgo.User, *discordgo.User, string, bool)

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