Skip to content
This repository was archived by the owner on Oct 10, 2024. It is now read-only.

Commit 5e73c27

Browse files
authored
feat(config): defaultEmbed accepts colour arguments. #374
* added parameter `color` Changed the `defaultEmbed()` function so as to have a parameter for **color** that is defaulted to `#0099ff` color (blue). This change is in response to Issue #372, * removed type of color The linting suggested I remove the type from the parameter as it is inferred.
1 parent e487002 commit 5e73c27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ export default {
4040
'You can assign this role to yourself to subscribe to get open-source reminders and if you like contributing to open-source software',
4141
},
4242
},
43-
defaultEmbed: () => {
43+
defaultEmbed: (color = '#0099ff') => {
4444
return new MessageEmbed()
45-
.setColor('#0099ff')
45+
.setColor(color)
4646
.setTimestamp()
4747
.setFooter(
4848
'Our bot is Open Source, you can find it here https://github.com/EddieJaoudeCommunity/EddieBot'

0 commit comments

Comments
 (0)