@@ -1001,9 +1001,8 @@ describe('Bot', function () {
1001
1001
this . bot . sendToDiscord ( 'n' , '#irc' , text ) ;
1002
1002
this . sendWebhookMessageStub . should . have . been . calledWith ( text , {
1003
1003
username : 'n_' ,
1004
- text,
1005
1004
avatarURL : null ,
1006
- disableEveryone : true ,
1005
+ disableMentions : 'everyone' ,
1007
1006
} ) ;
1008
1007
} ) ;
1009
1008
@@ -1012,9 +1011,8 @@ describe('Bot', function () {
1012
1011
this . bot . sendToDiscord ( '1234567890123456789012345678901234567890' , '#irc' , text ) ;
1013
1012
this . sendWebhookMessageStub . should . have . been . calledWith ( text , {
1014
1013
username : '12345678901234567890123456789012' ,
1015
- text,
1016
1014
avatarURL : null ,
1017
- disableEveryone : true ,
1015
+ disableMentions : 'everyone' ,
1018
1016
} ) ;
1019
1017
} ) ;
1020
1018
@@ -1029,9 +1027,8 @@ describe('Bot', function () {
1029
1027
this . bot . sendToDiscord ( 'nick' , '#irc' , text ) ;
1030
1028
this . sendWebhookMessageStub . should . have . been . calledWith ( text , {
1031
1029
username : 'nick' ,
1032
- text,
1033
1030
avatarURL : null ,
1034
- disableEveryone : true ,
1031
+ disableMentions : 'everyone' ,
1035
1032
} ) ;
1036
1033
} ) ;
1037
1034
@@ -1047,9 +1044,8 @@ describe('Bot', function () {
1047
1044
this . bot . sendToDiscord ( 'nick' , '#irc' , text ) ;
1048
1045
this . sendWebhookMessageStub . should . have . been . calledWith ( text , {
1049
1046
username : 'nick' ,
1050
- text,
1051
1047
avatarURL : null ,
1052
- disableEveryone : false ,
1048
+ disableMentions : 'none' ,
1053
1049
} ) ;
1054
1050
} ) ;
1055
1051
0 commit comments