-
Notifications
You must be signed in to change notification settings - Fork 27
Update help channel embed when channel is occupied #117
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
Changes from 11 commits
2def9e0
3ff4e46
6a5cda2
4d51ec2
4816e50
de5123c
15bbbf0
16239be
09ad491
9c71469
7a617bf
b8baf21
c18e1f7
995ce85
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -12,18 +12,21 @@ import { | |||||
Guild, | ||||||
TextChannel, | ||||||
GuildMember, | ||||||
User, | ||||||
} from 'discord.js'; | ||||||
import { HelpUser } from '../entities/HelpUser'; | ||||||
import { | ||||||
categories, | ||||||
TS_BLUE, | ||||||
GREEN, | ||||||
HOURGLASS_ORANGE, | ||||||
askCooldownRoleId, | ||||||
channelNames, | ||||||
dormantChannelTimeout, | ||||||
dormantChannelLoop, | ||||||
askHelpChannelId, | ||||||
ongoingEmptyTimeout, | ||||||
trustedRoleId, | ||||||
} from '../env'; | ||||||
import { isTrustedMember } from '../util/inhibitors'; | ||||||
|
||||||
|
@@ -39,6 +42,20 @@ This channel will be dedicated to answering your question only. Others will try | |||||
For more tips, check out StackOverflow's guide on **[asking good questions](https://stackoverflow.com/help/how-to-ask)**. | ||||||
`; | ||||||
|
||||||
const occupiedMessage = (asker: User) => ` | ||||||
**This channel is claimed by ${asker.toString()}.** | ||||||
It is dedicated to answering their questions only. | ||||||
|
It is dedicated to answering their questions only. | |
It is dedicated to answering their questions only; see <#${askHelpChannelId}> to claim your own. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added just "More info: <#${askHelpChannelId}>", so it will fit on one line. Two lines distracts a little from the "This channel is claimed by" message on the line above, in my opinion (fixable by adding a newline, but then the message starts to become longer than I think it should be).
Uh oh!
There was an error while loading. Please reload this page.