Start to add discord API structures
This commit is contained in:
parent
f6aac8fdc6
commit
bcaf02091f
3 changed files with 296 additions and 0 deletions
6
lib/utils/DictTools.dart
Normal file
6
lib/utils/DictTools.dart
Normal file
|
@ -0,0 +1,6 @@
|
|||
dynamic setor(Map<String, dynamic> arr, String element, dynamic other) {
|
||||
if (arr.containsKey(element))
|
||||
return arr[element];
|
||||
else
|
||||
return other;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue