110 lines
1.9 KiB
Plaintext
110 lines
1.9 KiB
Plaintext
[INFRACTION_TYPE_PRESENT]
|
|
switch('{type}') {
|
|
case 'NOTE':
|
|
'note';
|
|
break;
|
|
case 'WARN':
|
|
'warn';
|
|
break;
|
|
case 'MUTE':
|
|
'mute';
|
|
break;
|
|
case 'KICK':
|
|
'kick'
|
|
break;
|
|
case 'BAN':
|
|
'ban'
|
|
break;
|
|
case 'UNBAN':
|
|
'unban';
|
|
break;
|
|
case 'VCMUTE':
|
|
'voice-mute';
|
|
break;
|
|
case 'VCUNMUTE':
|
|
'voice-unmute';
|
|
break;
|
|
case 'VCKICK':
|
|
'voice-kick'
|
|
break;
|
|
case 'VCBAN':
|
|
'voice-ban'
|
|
break;
|
|
case 'VCUNBAN':
|
|
'voice-unban'
|
|
break;
|
|
case 'PRUNE':
|
|
'prune'
|
|
break;
|
|
case 'DEHOIST':
|
|
'dehoist'
|
|
break;
|
|
case 'ADDROLE':
|
|
'role-add'
|
|
break;
|
|
case 'REMOVEROLE':
|
|
'role-remove'
|
|
break;
|
|
case 'NICKNAME':
|
|
'nickname'
|
|
break;
|
|
case 'SLOWMODE':
|
|
'slowmode'
|
|
break;
|
|
}
|
|
|
|
|
|
[INFRACTION_TYPE_PAST]
|
|
switch('{type}') {
|
|
case 'NOTE':
|
|
'noted';
|
|
break;
|
|
case 'WARN':
|
|
'warned';
|
|
break;
|
|
case 'MUTE':
|
|
'muted';
|
|
break;
|
|
case 'KICK':
|
|
'kicked'
|
|
break;
|
|
case 'BAN':
|
|
'banned'
|
|
break;
|
|
case 'UNBAN':
|
|
'unbanned';
|
|
break;
|
|
case 'VCMUTE':
|
|
'voice-muted';
|
|
break;
|
|
case 'VCUNMUTE':
|
|
'voice-unmuted';
|
|
break;
|
|
case 'VCKICK':
|
|
'voice-kicked'
|
|
break;
|
|
case 'VCBAN':
|
|
'voice-banned'
|
|
break;
|
|
case 'VCUNBAN':
|
|
'voice-unbanned'
|
|
break;
|
|
case 'PRUNE':
|
|
'pruned'
|
|
break;
|
|
case 'DEHOIST':
|
|
'dehoisted'
|
|
break;
|
|
case 'ADDROLE':
|
|
'role-added'
|
|
break;
|
|
case 'REMOVEROLE':
|
|
'role-removed'
|
|
break;
|
|
case 'NICKNAME':
|
|
'nicknamed'
|
|
break;
|
|
case 'SLOWMODE':
|
|
'slowmoded'
|
|
break;
|
|
} |