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

add WithSettings method to operate on GuildSettings #14

Closed
uwx opened this issue Oct 7, 2017 · 2 comments
Closed

add WithSettings method to operate on GuildSettings #14

uwx opened this issue Oct 7, 2017 · 2 comments
Assignees
Labels
enhancement Enhancing existing features

Comments

@uwx
Copy link
Collaborator

uwx commented Oct 7, 2017

eg.

await ctx.WithSettings(async cfg => {
    // do stuff with cfg
    cfg.Linkfilter.BlockBooters = true;
    cfg.Linkfilter.BlockInviteLinks = true;
    cfg.Linkfilter.BlockIpLoggers = true;
    cfg.Linkfilter.BlockShockSites = true;
    cfg.Linkfilter.BlockUrlShorteners = true;
    // implicit
    // await ctx.SetGuildSettingsAsync(cfg);
});
@uwx uwx added the enhancement Enhancing existing features label Oct 7, 2017
@Emzi0767
Copy link
Collaborator

Emzi0767 commented Oct 7, 2017

I'll consider it.

@uwx uwx self-assigned this Oct 7, 2017
@uwx
Copy link
Collaborator Author

uwx commented Oct 9, 2017

didit:tm:

@uwx uwx closed this as completed Oct 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancing existing features
Projects
None yet
Development

No branches or pull requests

2 participants