simplify loacluser code
This commit is contained in:
@@ -654,7 +654,7 @@ class Localuser {
|
|||||||
}
|
}
|
||||||
async typingStart(typing) {
|
async typingStart(typing) {
|
||||||
if (this.channelfocus.id === typing.d.channel_id) {
|
if (this.channelfocus.id === typing.d.channel_id) {
|
||||||
const guild = SnowFlake.getSnowFlakeFromID(typing.d.guild_id, Guild).getObject();
|
const guild = this.guildids.get(typing.d.guild_id);
|
||||||
const memb = await Member.new(typing.d.member, guild);
|
const memb = await Member.new(typing.d.member, guild);
|
||||||
if (memb.id === this.user.id) {
|
if (memb.id === this.user.id) {
|
||||||
console.log("you is typing");
|
console.log("you is typing");
|
||||||
|
@@ -672,7 +672,8 @@ class Localuser{
|
|||||||
}
|
}
|
||||||
async typingStart(typing):Promise<void>{
|
async typingStart(typing):Promise<void>{
|
||||||
if(this.channelfocus.id===typing.d.channel_id){
|
if(this.channelfocus.id===typing.d.channel_id){
|
||||||
const guild=SnowFlake.getSnowFlakeFromID(typing.d.guild_id,Guild).getObject()
|
|
||||||
|
const guild=this.guildids.get(typing.d.guild_id);
|
||||||
const memb=await Member.new(typing.d.member,guild);
|
const memb=await Member.new(typing.d.member,guild);
|
||||||
if(memb.id===this.user.id){
|
if(memb.id===this.user.id){
|
||||||
console.log("you is typing")
|
console.log("you is typing")
|
||||||
|
Reference in New Issue
Block a user