Skip to content

Commit

Permalink
Add ?selfcontact resolves #2762
Browse files Browse the repository at this point in the history
  • Loading branch information
fourjr committed Nov 5, 2020
1 parent 66856ca commit 06a0a87
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ however, insignificant breaking changes do not guarantee a major version bump, s
- If `?help` is sent, bot does checks on every command, `?help all` restores old behaviour. ([GH #2847](https://github.com/kyb3r/modmail/issues/2847))
- Added a way to block roles. ([GH #2753](https://github.com/kyb3r/modmail/issues/2753))
- Added `cooldown_thread_title`, `cooldown_thread_response` to customise message sent when user is on a creating thread cooldown. ([GH #2865](https://github.com/kyb3r/modmail/issues/2865))
- Added `?selfcontact` to allow users to open a thread. ([GH #2762](https://github.com/kyb3r/modmail/issues/2762))

### Fixed

Expand Down
5 changes: 5 additions & 0 deletions cogs/modmail.py
Original file line number Diff line number Diff line change
Expand Up @@ -906,6 +906,11 @@ async def edit(self, ctx, message_id: Optional[int] = None, *, message: str):
sent_emoji, _ = await self.bot.retrieve_emoji()
await self.bot.add_reaction(ctx.message, sent_emoji)

@commands.command()
@checks.has_permissions(PermissionLevel.REGULAR)
async def selfcontact(self, ctx):
await ctx.invoke(self.contact, user=ctx.author)

@commands.command(usage="<user> [category] [options]")
@checks.has_permissions(PermissionLevel.SUPPORTER)
async def contact(
Expand Down

0 comments on commit 06a0a87

Please sign in to comment.