Skip to content

Commit

Permalink
Merge pull request #272 from saiteja-madha/dashboard-fixes
Browse files Browse the repository at this point in the history
Dashboard fixes
  • Loading branch information
Sai Teja Madha authored Dec 10, 2022
2 parents ba3b285 + 0da08a8 commit 500bdb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions dashboard/routes/guild-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ router.post("/:serverID/basic", CheckAuth, async (req, res) => {
}

if (data.channels?.length) {
if (typeof data.channels === "string") data.channels = [data.channels];
settings.automod.wh_channels = data.channels
.map((ch) => guild.channels.cache.find((c) => "#" + c.name === ch)?.id)
.filter((c) => c);
Expand Down
2 changes: 1 addition & 1 deletion dashboard/views/manager/greeting.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
</div>
<div class="form-group">
<label>Description</label>
<textarea rows="3" name="message" class="form-control"><%- guild.farewell.embed.description?.replaceAll(/\\n/g, '&#10;') %></textarea>
<textarea rows="3" name="description" class="form-control"><%- guild.farewell.embed.description?.replaceAll(/\\n/g, '&#10;') %></textarea>
</div>
<div class="form-group">
<label>Footer</label>
Expand Down

0 comments on commit 500bdb9

Please sign in to comment.